Hi,
I created a sword that will spawn from many angles and fly across the screen.
The Sword should have like a Trail, which i use Particle FX for it. Not sure if this is the right approach to it since the train will look like the sword (same Sprite). It looks kinda ok.
Now I can rotate the sprite but not the Emitter itself. so the direction of the Trail will always look the same no matter the rotation of the Sword.
I did read that i should put the emitter in a game object and rotate that, but the sword trail will still look like this:
facing upwards no matter the direction and rotation of the gameobject is going.
How can i rotate the Trail so it has the same direction as the Sprite?
function init(self)
local emitter_id = go.get_id("sasaki_katana_emitter")
local rotation_self = go.get_rotation(".")
-- set the rotation of the emitter game object
go.set_rotation(rotation_self, emitter_id)
particlefx.play("sasaki_katana_emitter#sasaki_katana")
go.animate(".", "position", go.PLAYBACK_ONCE_FORWARD, vmath.vector3(1000,1000,0), go.EASING_LINEAR, 10)
end
and this is how the collection looks like i create from the collection_factory:
I used to have a normal factory but I tried to go with the approach to rotate the GO containing the particleFX, so far with no success.
How could i achieve this?