Page 2 of 3
Re: Platformer X
Posted: Sun Apr 29, 2012 6:49 am
by Banoticus
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.
Re: Platformer X
Posted: Sun Apr 29, 2012 7:15 am
by Zeliarden
It works if you make the chages... i just added comments...
and
Code: Select all
return false -- ** use player.collision = true instead**
should ofcouse be false
Code: Select all
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.
https://love2d.org/wiki/HardonCollider
And can anybody tell me if i can design platformer levels the way you would with a gridlocked player game.
yes. btw why not just add gravity and free movement in your "gridlocked player game" and you have a "platformer game"
you could also check out
https://love2d.org/wiki/Advanced_Tiled_Loader
Re: Platformer X Website
Posted: Sat May 05, 2012 6:12 pm
by Banoticus
Yo man just added my site to my signature.
Check it out and tell everyone about it.
I will be mostly posting updates and stuff there.
Re: Platformer X Website
Posted: Tue May 08, 2012 6:28 pm
by Davidobot
Banoticus wrote:Yo man just added my site to my signature.
Check it out and tell everyone including me they you visited it.
Oh, please do and check out The Crawler of Dungeons™ while you are there.
Re: Platformer X™
Posted: Wed Jul 11, 2012 5:42 pm
by Banoticus
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?
Re: Platformer X™
Posted: Wed Jul 11, 2012 7:39 pm
by Robin
It would help if you could give us a .love of what you have right now.
Re: Platformer X™
Posted: Wed Jul 11, 2012 10:09 pm
by Nixola
You should use some sound manager library, like
TEsound or
SLAM
Re: Platformer X™
Posted: Thu Jul 12, 2012 3:40 pm
by Banoticus
For Robin
For Nixola
Thanks, i will attempt to figure SLAM out.
Re: Platformer X™
Posted: Thu Jul 12, 2012 7:11 pm
by Robin
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.
Re: Platformer X™
Posted: Fri Jul 13, 2012 4:01 pm
by Banoticus
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.