Stencyl 3.4.0 is now out. Get it now!

rotate animation in different direction help pleaze

YobKgames

  • Posts: 48
i have ball it move in diffrent direction i want to add an  animation  for the move (like fire in the back ) but how to let it on the back of the actor in this many different dirrection ?
what i have to doo help pleaze 


VoidShard

  • Posts: 80
You could use trigonometry with the angle, but that quickly becomes laggy.
A simpler way might just be to create an actor behind your ball, and when your ball moves it leaves behind a whole bunch of fires.
If you want the fire to actually move, that's a bit more difficult.

JeffreyDriver

  • Posts: 898
I think that the image API would be best for this, where you draw image instances behind the ball.