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.

DarkBASIC Professional Discussion / Collision problem(Sparkys)

Author
Message
Eminent
16
Years of Service
User Offline
Joined: 15th Jul 2010
Location:
Posted: 11th Oct 2010 02:04
I was trying out collision with sparkys collision but I cant seem to get it to work. Could you guys help?




Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 11th Oct 2010 10:34
Hi, the main problem is that you are checking for the wrong object number. The command sc_objectcollision(obj1,obj2) returns the Object Number when obj2 = 0.

So change

to


Also add

to update your objects collision.

Hope this helps

A clever person solves a problem, a wise person avoids it - Albert Einstein

Login to post a reply

Server time is: 2026-07-22 03:51:50
Your offset time is: 2026-07-22 03:51:50