How do I stop an object from rotating after it pins?

0 favourites
  • 3 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I currently have a bullet that pins to objects as a "splash" effect after it hits. Like paintball.

    I use on touch, set angle to touch.x and touch.y

    However when the bullet hits the object, it continues to rotate a little bit once it hits.

    Is there a more efficient way to have my bullet go in the direction I touch, or how can I stop it from rotating once it hits?


  • Use the "is pinned" condition from the pinned object.

    Then on your ontouch event add the condition bullet is pinned (and invert it so it basically says bullet isn't pinned)

    Now its possible I miss understood you when you said it continues to rotate a little bit once it hits.

    If by that you mean you had your bullet rotate a set amount of degrees per tick towards touch.x and touch.y

    then you'll have to add an event on collision that instantly finishes the rotation or simply stops the rotation.

    Depends on what you're using to rotate the object (the sprite angle, the bullet behavior angle, ect.).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you! What event / action would I use on collision to finish / stop the rotation?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)