Tracking Rotation

Stryfe01Stryfe01 Member Posts: 146
edited November -1 in Working with GS (Mac)
I'm back in the "studio", and part of the game that I'm working on will award a point multiplier depending on the rotation speed of the actor. I did the following, it was early this morning, so forgive me if it's a simple mistake. LOL

new attribute Spin real
new attribute Spin Bonus real
constrain attribute actor.rotation to Spin "this should convert the integer value of the actors spinning rotation to a real value"

if
actor collides/overlaps with actor 2 AND Spin >=10
then
change attribute Spin Bonus = (25 * Spin)
change attribute game.score= game.score + Spin Bonus

ELSE

if
actor collides/overlaps with actor 2 AND Spin <10
change attribute game.score= game.score + 25

Now when the game runs, and either scenario plays out. The first actor moves incredibly slow and refuses to spin. Any thoughts?
Sign In or Register to comment.