i am doing some spaceship shot game practice.last day,i set a particles system in the bottom of my spaceship
my spaceship is not real moving(it’s always in the center of canvas),and i scroll the background to make it looks like spaceship is flying.
the particles is in the ship’s layer with that ship sprite.the star background is a parallaxnode in another layer.
and finally it’s run cool.
however,coz’ the ship is not moving,that particles is not correct while the ship layer rotate(like that accessory picture shown)
the solution so far i can figure out is add the particles in background layer.but i don’t wanna do that,it looks so not OOP.so is there a way to set particles’s relative target? in my case,i can set the particles system in my ship layer,and set its relative target to that background layer.
starcraft1.png (34.5 KB)