Stencyl 3.4.0 is now out. Get it now!

Stop actor from sliding down when on 45 degrees angle tiles [SOLVED]

nikopol

  • Posts: 26
Hey,

So the problem is pretty much explained in the title. How can I do this without increasing friction ? (since it would make it harder to walk up slopes)

« Last Edit: March 21, 2017, 07:46:56 am by nikopol »

LIBERADO

  • *
  • Posts: 2252
Set the friction to 0 when the player is pressing any key to move the actor.
Set the friction to 1 when the player is not pressing any key to move the actor.
   
<a href="http://static.stencyl.com/games/36296-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/36296-0.swf</a>

« Last Edit: March 20, 2017, 08:18:25 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

squeeb

  • Posts: 1010
Genius.. haha.. I was trying to think that one out for a bit

nikopol

  • Posts: 26
Awesome, solved my problem !

Didn't know we could interact with friction from outside the 'physics' tab

LIBERADO

  • *
  • Posts: 2252
Didn't know we could interact with friction from outside the 'physics' tab
Yes. And you can even set the friction to a value higher than 1
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.