Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / More accurate array collision help.

Author
Message
Izzy545
22
Years of Service
User Offline
Joined: 18th Feb 2004
Location:
Posted: 27th Aug 2004 11:58
How would I make this array collision system more accurate? Right now you sink up to 4 or 5 pixels into the ground... I could just check if you're in the ground and if so pop you back up again, but this might not look too good... The code is in the source box.
mr joe
21
Years of Service
User Offline
Joined: 12th Aug 2004
Location: Edinburger, Scotland. DBC
Posted: 27th Aug 2004 19:34
The way I've done it is to make a kind of border around the character with sprites in the 'invisible' colour (black or pink or whatever). Then when this sprite hits the ground the character is popped down to the right level. If you set it so the distance that the character is popped isn't too much then it dosen't look funny at all.

Login to post a reply

Server time is: 2026-06-11 14:49:10
Your offset time is: 2026-06-11 14:49:10