toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
Trace actor speed
skott
Member
Posts:
172
March 2010
edited November -1
in
Working with GS (Mac)
Hi,
I need to trace an actors speed. How to do that?
Skott
Comments
adado
Member
Posts:
219
March 2010
Add a "Display Text" to the actor (make sure the color of the text is visible against whatever color(s) of the actor. Adjust the text size too if necessary. Then in the "Display Text" field labeled "Text" add:
`magnitude( self.Motion.LinearVelocity.X , self.Motion.LinearVelocity.Y )`
skott
Member
Posts:
172
March 2010
Thanks adado,
It works exactly as it should...
Sign In
or
Register
to comment.
Comments
`magnitude( self.Motion.LinearVelocity.X , self.Motion.LinearVelocity.Y )`
It works exactly as it should...