How do I maintain the angle of motion

0 favourites
  • 6 posts
From the Asset Store
Complete the collection by purchasing Motion Universe Pt. 2
  • Hi,

    I'm using the 8 directional movement behaviour and all works well as the piece moves and rotates as you'd expect. However, once I stop moving it resets the angle of the sprite to the nearest 90 degree (0,90,180,270) - Is there a way to stop this please ?

    Thanks

    Ian

  • In the 8 Direction Behaviors you can set SET ANGLE to No or to angle you are using.

  • Hi Lamar,

    Thanks for the reply. Setting the angle to no means that it doesn't rotate at all, which is not what I'm after. I want it to rotate, using 360 smooth, and then to stay facing the angle it's in when I let go of the keys. Instead, it just returns to the nearest 90 degree angle.

    Is there a way to move in 360 degrees, but keep that angle when stopped please ?

    Thanks.

  • Try setting "set angle" to no and making an event:

    Sprite: 8direction: is moving

    --- sprite: set angle to sprite.8direction.angleOfMotion

  • Hi Lamar,

    Thanks for the reply. Setting the angle to no means that it doesn't rotate at all, which is not what I'm after. I want it to rotate, using 360 smooth, and then to stay facing the angle it's in when I let go of the keys. Instead, it just returns to the nearest 90 degree angle.

    Is there a way to move in 360 degrees, but keep that angle when stopped please ?

    Thanks.

    I should have asked you if it is a car like sprite.

    See ROJOhound comment. That should take care of it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doesn't seem to work either I'm afraid Rojo. I've posted a capx here:

    http://gothamvillage*co*uk/Construct2/N ... ect.caproj

    Which shows it going back to a right angle.

    Obviously replace the * with . to get to the URL <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

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