How to figure out if something is sliding?

00george

  • Posts: 161
Hi in my game I want the character to NOT rotate when he is moving. I have partialy got there but when he has reached he destination he will not start to rotate again. I know how to make him start rotating again if I can figure out how to check if he is sliding. I will post pictures below and the link to the game as well. Also he faces the wrong way when sliding. http://www.stencyl.com/game/play/11488

Hectate

  • *
  • Posts: 4645
Maybe the problem is the "Stop" block isn't letting you do anything else in the behavior? Technically you don't need that at all - or that whole Otherwise If check. If the top part isn't true, nothing else happens anyway. Unless you're intending to do something else in the future with it, you can probably remove it.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

00george

  • Posts: 161
Ok I have sorted out one problem but for some reason where ever I click the box will always change to the same frame.

Hectate

  • *
  • Posts: 4645
Then the problem is probably with your math. Try printing the value and see if it's coming out to what you expect it should.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.