Help: make player run up walls

Updated on May 28, 2018 in Challenges
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on May 28, 2018

Hi guys,

I’m making a 2D platformer and I want my player to smoothly transition from moving horizontally on the ground to moving vertically on the wall (same velocity) while still pressing the direction key. If the direction key is unpressed, then the player should just fall (gravity = original gravity) or if the jump key is pressed, the player should jump in the opposite direction perhaps to an adjacent wall.

I’ve tried using a Linecast to detect the wall, setting the gravity scale to 0 and adding vertical velocity, but I don’t get the effect i need. Any help and advice would be great. Thank you!

  • Liked by
Reply