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 / Need some help with collision (sparky's)

Author
Message
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 2nd Jan 2009 05:31 Edited at: 2nd Jan 2009 17:08
Ok, I wrote this simple program to see if I could even detect collision using sparky's collision. I need some help.



Even though the two objects collide it doesn't say "collision!".

Any help is appreciated.
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 2nd Jan 2009 12:22
I dont think your updating your objects.
SC_Update(1);
SC_Update(2);
Sprakys needs to know if the objects have moved.

SC_DrawObjectBounds(int obj);
Is a handy function when things are not going right with collision.
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 2nd Jan 2009 17:11
Thanks a load, it works now!

Login to post a reply

Server time is: 2024-09-30 13:25:48
Your offset time is: 2024-09-30 13:25:48