Zeliarden wrote:Yo! looked through your code and addes some notes of what could be the problem...
It doesn't seem to be working, the guy is still stuck in the air.
Thanks for trying to help.
Can anybody please tell me a way of adding collisions to a platformer game.
And can anybody tell me if i can design platformer levels the way you would with a gridlocked player game.
frame = dt * 30 -- I do this just because I think better this way
player.ySpeed = player.ySpeed + player.gravSecond * frame -- We add gravity to the ySpeed
the * 30 is redundant as you allready have player.gravSecond, remove it and set it to player.gravSecond instead
Can anybody please tell me a way of adding collisions to a platformer game.
This thread has been dead for such a long time. I have been busy with another project. I've also done quite a bit of work on this game. When you press 'm' you fire a missile and it makes a sound (sorry about all the new features). If i repeatedly press it it only makes a sound very second, due to the fact the sound is one second long.
CAN ANYBODY HELP?
OK, now we're getting somewhere. Do you have the same problems with jumping etc.? If not, try converting the launch sound to .ogg, because I remember OGG working better than MP3.
Robin wrote:OK, now we're getting somewhere. Do you have the same problems with jumping etc.? If not, try converting the launch sound to .ogg, because I remember OGG working better than MP3.
I downloaded some sounds to try it out - as you can see in the file - but it still worked the same. Haven't tried out SLAm yet.