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.

Dark GDK / Please help Converting Freddix's 2d pixel perfect collision system for GDK

Author
Message
Fleep
13
Years of Service
User Offline
Joined: 1st Oct 2010
Location:
Posted: 17th Aug 2011 20:31 Edited at: 18th Aug 2011 02:27
Hey guys so im making a 2d game in GDK and before everything i need to have a 2d collision system working, ive seen quite a few different ones and i think Freedix's system is what im looking for(http://forum.thegamecreators.com/?m=forum_view&t=4826&b=6)

So here is his code.


and below is What ive converted it to.



So my problem is that in my version as soon as
"dbPrint("Calculate if collision exists . . .");"
displays and _CHECK = 1 then the movement sprite gets reset to their original position.

If you could help me make this work that would be greatly appreciated.
Thanks

EDIT:Never mind i found a way of converting the code using Frame's DarkBASIC Pro to DarkGDK Converter, although it had a few errors the modifications necessary were very few, here's Freddix's 2d pixel perfect collision system for Dark gdk.

Login to post a reply

Server time is: 2024-05-22 07:47:40
Your offset time is: 2024-05-22 07:47:40