Platformer Collision Issues

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.
Post Reply
User avatar
JesseH
Prole
Posts: 47
Joined: Mon Nov 19, 2012 6:04 am
Location: Georgia, USA
Contact:

Platformer Collision Issues

Post by JesseH »

Hello all,
I am having some issues getting collision to work "flawlessly" like I would prefer it to do. At the moment, in my proof of concept, you can tell that collision handles strange. You can see very tiny jumps and movement that the player is having.
I believe it is a problem with how I am moving the player, in player:update. However I am not perfectly sure. Any advice on how to fix this, or how to optimize my existing code, that would be great.
http://i.imgur.com/28fKG.png
Note* Had to fix a little bug that I got from fiddling too much. I can't fix anything else.
Attachments
Haibutsu 2013.love
Edit: updated game
(43.92 KiB) Downloaded 179 times
Last edited by JesseH on Tue Jan 01, 2013 9:06 pm, edited 1 time in total.
holothurian
Prole
Posts: 22
Joined: Sat Dec 22, 2012 11:59 pm

Re: Platformer Collision Issues

Post by holothurian »

Is the player meant to be able to move? At the moment I can jiggle him left or right by 1 but he doesn't actually move!
User avatar
JesseH
Prole
Posts: 47
Joined: Mon Nov 19, 2012 6:04 am
Location: Georgia, USA
Contact:

Re: Platformer Collision Issues

Post by JesseH »

Oh lord, let me fix this.
holothurian
Prole
Posts: 22
Joined: Sat Dec 22, 2012 11:59 pm

Re: Platformer Collision Issues

Post by holothurian »

JesseH wrote:Oh lord, let me fix this.
NEVER! Your error is preserved in the amber of the internet, to be pored over by legions of tech-monocle wearing researchers in the far future.

:O

Code: Select all

self.jump = -200 -- something related to michael jackson
me likey
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: Platformer Collision Issues

Post by NightKawata »

holothurian wrote:

Code: Select all

self.jump = -200 -- something related to michael jackson
me likey
Aren't I so clever with my comments :awesome:
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
User avatar
JesseH
Prole
Posts: 47
Joined: Mon Nov 19, 2012 6:04 am
Location: Georgia, USA
Contact:

Re: Platformer Collision Issues

Post by JesseH »

Still sitting here, wondering why it doesn't work.
User avatar
sanjiv
Citizen
Posts: 88
Joined: Mon Feb 27, 2012 5:11 am

Re: Platformer Collision Issues

Post by sanjiv »

I'm not clear on what problem you're looking at. When moving horizontally on the top platform, I think I noticed the player hit a bump, but I could not get this to happen again. Is that (and only that) the current problem you're trying to solve?
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests