How to get degree of the actor?

arcdragon

  • Posts: 35
Hi! Everyone!

I want the angle of the actor that I have set in the velocity.
In fact, I created the behavior of creating an actor as a scene behavior,
and gave the speed by using the Last Created Actor.
I would like to know the speed of the actor that was created.

what do I need to do?

Thank you.

Edit:I would like to get speed from the actor behavior.

« Last Edit: April 05, 2012, 08:02:56 am by arcdragon »

zeljko46

  • Posts: 84
Maybe put the speed and direction in an attribute, and use the code 'get [anything] from behavior [behavior name]'
Play my game: http://www.kongregate.com/games/zeljko46/idle-downloader
Feedback, suggest, and if you want, offer help :)

captaincomic

  • *
  • Posts: 6108
Look at the first screenshot to see how to get the speed.
And at the second screenshot how to get the direction of motion.


arcdragon

  • Posts: 35
Hi. zeljko46. captaincomic. Thank you for your reply!
I made good! Thanks to you, my problem has disappeared!
Thank you.Everyone.