on Game Development
See other posts from Game Development
or by Andreas Elia
Published on 2013-06-30T10:59:37Z Indexed on 2013/06/30 16:28 UTC
Read the original article Hit count: 219
I am just wanting to know of another (longer OR shorter) way of getting 100% effective collisions on a 2D plat-former. The current collision system that is in place works from coords on the level and does not always work reliably.
Thank you in advance for any help/support.
The current system draws a rectangle and is checking to see if any two points collide. From testing, the system can sometimes "glitch" and allow the player to collide into walls etc.
Player Class http://pastebin.com/2zE8vz8R
Main Class http://pastebin.com/A6Utb3ti
© Game Development or respective owner