TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How to get degree of the actor?
Pages:
1
How to get degree of the actor?
arcdragon
Posts: 35
April 05, 2012, 07:58:37 am
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
April 05, 2012, 10:29:30 am
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
April 05, 2012, 02:22:16 pm
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
April 05, 2012, 05:22:25 pm
Hi. zeljko46. captaincomic. Thank you for your reply!
I made good! Thanks to you, my problem has disappeared!
Thank you.Everyone.
Pages:
1