Jumping
Posted: Sun Sep 16, 2012 11:02 pm
Hello!
I'm new to this online community, although I've been using this framework for a little while. I'm trying to make a platformer but I can't seem to be able to get jumping right (it's actually very sad). I already tried a tutorial on the wiki, but it was "incomplete" and it didn't work. I tried
and then some very similar code for coming down. In retrospect it doesn't seem like the best way of doing things, but I had already tried love.keypressed(key) and love.keyboard.isDown(" ") but nothing seemed to work. Sadly, I deleted that part of the code so I can't put it up here.
Basically I tried making a square "jump" but nothing I tried work. How would you guys do it?
I'm new to this online community, although I've been using this framework for a little while. I'm trying to make a platformer but I can't seem to be able to get jumping right (it's actually very sad). I already tried a tutorial on the wiki, but it was "incomplete" and it didn't work. I tried
Code: Select all
for i = 1, 20 do
playerY = playerY - 0.3
end
Basically I tried making a square "jump" but nothing I tried work. How would you guys do it?