toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
how do i make a actor rotate back to its normal position
THINGTHING
Member
Posts:
84
September 2010
edited November -1
in
Working with GS (Mac)
how do i make a actor rotate back to its normal position after it overlaps or collides with another actor
Comments
jstrahan
Member
Posts:
498
September 2010
In actor under physics turn rotate off and it will stop the rotation
jstrahan
Member
Posts:
498
September 2010
If u want the rotation and want it to rotate back
In a collide rule put a timer after (how long u want rotation to occure) change attribute self.rotation =0 or interpolated actor rotation to 0
ORBZ
Member
Posts:
1,304
September 2010
save the actor's initial rotation position at startup by creating a self.initRotation (angle) attribute.
At the top of the behavior list put:
Change Attribute self.initRotation = self.rotation
Then in the collide rule...
Rule: When overlaps or collides with ...
Rotate To Angle self.initRotation [x] runs to completion
Sign In
or
Register
to comment.
Comments
In a collide rule put a timer after (how long u want rotation to occure) change attribute self.rotation =0 or interpolated actor rotation to 0
At the top of the behavior list put:
Change Attribute self.initRotation = self.rotation
Then in the collide rule...
Rule: When overlaps or collides with ...
Rotate To Angle self.initRotation [x] runs to completion