Stencyl 3.4.0 is now out. Get it now!

rotate animation in the direction of actor

YobKgames

  • Posts: 48
i have many many direction for my actor move how can i make the animation rotate in the direction of actor

nikopol

  • Posts: 26
Have you tried using the command 'grow' ?
Actor >> Tweening

JeffreyDriver

  • Posts: 900
Sorry, I don't fully understand what you're trying to do. Are you trying to point an actor towards another or make an actor point the direction it's facing? There's pre-made behaviours shipped with Stencyl that will do that.

YobKgames

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

nikopol

  • Posts: 26
If for example your animation is showing a ball going right leaving a fire trace,  if you turn left and want your animation to also turn, place the block :

 grow 'ball' to (w:-100 %, h:100 %) over 0 sec using None

YobKgames

  • Posts: 48
grow 'ball' to (w:-100 %, h:100 %) over 0 sec using None

this code is availble for all directionn ?

CmdrWhitey13

  • Posts: 444
Should work as:

grow 'ball' to (w:100 %, h:100 %) = right
grow 'ball' to (w:-100 %, h:100 %) = left
grow 'ball' to (w:100 %, h:-100 %) = up