I can't find any functions or methods to nail this the right way. I'm trying to make an easter game and having some problems - it is my first time making characters in-game.
Anyhow, my problems are:
The character is moving in the right direction, but I literally set velocity, so it isn't falling or walking up surfaces when necessary unless you stop walking
Character falls when climbing the high surfaces, while it should remain upright at all times.
I attached the love file. The file with the problem is \scenes\game\main.lua, line 225 is where the love.update is. Please, suggestions or tips would be appreciated. Thanks.
P.S. The pink-red box is the character: I'll be replacing it with an image soon. Just pretend, lol.
Last edited by Bannana97 on Sat Mar 23, 2013 3:08 pm, edited 1 time in total.
You're setting the Y velocity to zero. Set it to a variable that contains the current force of gravity on the player. (If there's a platform under you it should be zero.)
Hope I could help, and if it doesn't work I apologize.