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! / 2D Platformer Collision Detection

Author
Message
Xlaydos
22
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 13th Apr 2006 16:27
I have a collision map for my area, but i need a 2d version of INTERSECT OBJECT. I need this because as my i move the character down (gravity) he gets stuck in the floor.

Here is my code if it helps


The collision data is a 2d array with 1 for solid and 0 for non-solid and the map data is a 2d array with the image number for each tile
Xlaydos
22
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 14th Apr 2006 15:08
New code i rewrote so it works better now, still fall into floor though

Login to post a reply

Server time is: 2026-07-01 21:22:25
Your offset time is: 2026-07-01 21:22:25