How to stop rotating object

  1. 3 weeks ago

    Hello I am constantly having a object keep rotating, it does not come back and stay where I finish it.
    On the second click it starts where it left off and keeps going. How do I complete the rotation so that when tapped again it does the same rotation. I'm very new thank you

  2. 2 days ago

    Hello has anyone have a possible solution.

  3. 21 hours ago

    Angelo S

    21 hours ago Administrator

    Hello,
    the rotate action is always in "delta", meaning it rotates from the actual position.
    To achieve the behavior you want you need to add a "Run Javascript" action before the rotate action using the one-line code below:

    $(pubcoder.objects.myObject).rotate(0)

    Please replace "myObject" with your the object alias, that you can set in the inspector after selecting the object itself

 

or Sign Up to reply!