Platformer Jump Help

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
ArterianGames
Prole
Posts: 11
Joined: Tue Apr 28, 2015 6:36 pm

Re: Platformer Jump Help

Post by ArterianGames »

Can I just simply send you rar? xD
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platformer Jump Help

Post by Robin »

Yea, my computer doesn't do rar. That's why a .love is generally a renamed .zip, because then everyone can run it.
Help us help you: attach a .love.
ArterianGames
Prole
Posts: 11
Joined: Tue Apr 28, 2015 6:36 pm

Re: Platformer Jump Help

Post by ArterianGames »

Oh ok ;) I'll try to do it with zip then I quess? :D
ArterianGames
Prole
Posts: 11
Joined: Tue Apr 28, 2015 6:36 pm

Re: Platformer Jump Help

Post by ArterianGames »

Hope it works now...
Attachments
game.zip
(1.03 KiB) Downloaded 60 times
game.love
(1.03 KiB) Downloaded 65 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platformer Jump Help

Post by Robin »

I see the problem. You don't pass dt to your update functions, you define a global variable called dt. Remove that line, and replace the following function definitions:

Code: Select all

function love.update(dt)
	PLAYER_UPDATE(dt)
end
and

Code: Select all

function PLAYER_UPDATE(dt)
	player.physics(dt)
	player.controls(dt)
end
Help us help you: attach a .love.
ArterianGames
Prole
Posts: 11
Joined: Tue Apr 28, 2015 6:36 pm

Re: Platformer Jump Help

Post by ArterianGames »

THANK YOU SO MUCH! THIS GUY SHOULD BE A MOD!

#Promote
Post Reply

Who is online

Users browsing this forum: Google [Bot], slime and 6 guests