Platformer X™

Show off your games, demos and other (playable) creations.
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Platformer X

Post 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.
Zeliarden
Party member
Posts: 139
Joined: Tue Feb 28, 2012 4:40 pm

Re: Platformer X

Post 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
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Platformer X Website

Post 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.
Last edited by Banoticus on Wed May 09, 2012 3:26 pm, edited 1 time in total.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Platformer X Website

Post 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.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Platformer X™

Post 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?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platformer X™

Post by Robin »

It would help if you could give us a .love of what you have right now.
Help us help you: attach a .love.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Platformer X™

Post by Nixola »

You should use some sound manager library, like TEsound or SLAM
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Platformer X™

Post by Banoticus »

For Robin
Here is v.0.1:
Platformer X.zip
The .luas are inside.
(5.36 MiB) Downloaded 205 times
For Nixola
Thanks, i will attempt to figure SLAM out.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platformer X™

Post 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.
Help us help you: attach a .love.
User avatar
Banoticus
Citizen
Posts: 60
Joined: Wed Apr 04, 2012 4:01 pm
Location: London

Re: Platformer X™

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 69 guests