how do i make a actor rotate back to its normal position

THINGTHINGTHINGTHING Member Posts: 84
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

  • jstrahanjstrahan Member Posts: 498
    In actor under physics turn rotate off and it will stop the rotation
  • jstrahanjstrahan Member Posts: 498
    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
  • ORBZORBZ Member Posts: 1,304
    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.