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 help with the Collision of two Objects (darkGDK)

Author
Message
camera as a mirror
14
Years of Service
User Offline
Joined: 7th Feb 2010
Location:
Posted: 11th Feb 2010 22:03
i have a problem about the collision of two objects.. i want to have a pop up message when the two objects collide.. i have a object car where controlled by the arrow key and a object house where i want to collide the car.. here are my few codes.. and pls help me to make this work..

if (dbObjectCollision ( 101, 200 ) == 1)
{
dbText ( 10, 10, "Collision" );
}

101 - Object CAR ,,, 200 - Object HOUSE

always be humble..
fire ball
14
Years of Service
User Offline
Joined: 15th Jan 2010
Location: indonesia
Posted: 25th Mar 2010 21:14
maybe you set the collision object off somewhere.. try dbSetObjectCollisionOn(id_object) on those 2 objects..
AriEf
14
Years of Service
User Offline
Joined: 30th Nov 2009
Location: Indonesia
Posted: 16th Apr 2010 20:26
hi
i think you missed this code
(before loop)


hope help

Rank : Beginner Coder
Im Indonesian, and I cant speak english, i hope you understand

Login to post a reply

Server time is: 2024-11-20 01:42:10
Your offset time is: 2024-11-20 01:42:10