Page 1 of 1

Platformer Collision Issues

Posted: Tue Jan 01, 2013 8:39 pm
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.

Re: Platformer Collision Issues

Posted: Tue Jan 01, 2013 8:56 pm
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!

Re: Platformer Collision Issues

Posted: Tue Jan 01, 2013 9:04 pm
by JesseH
Oh lord, let me fix this.

Re: Platformer Collision Issues

Posted: Tue Jan 01, 2013 9:08 pm
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

Re: Platformer Collision Issues

Posted: Tue Jan 01, 2013 9:20 pm
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:

Re: Platformer Collision Issues

Posted: Sun Jan 20, 2013 7:39 pm
by JesseH
Still sitting here, wondering why it doesn't work.

Re: Platformer Collision Issues

Posted: Wed Jan 23, 2013 2:52 am
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?