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.

Newcomers DBPro Corner / On collision stop moving

Author
Message
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 20th Nov 2011 15:06
Hey guys,
So ive been fairly busy with dbpro and had a quick question.

I am looking for a way to make it so that whenever my box collides into the other box it will just stop moving.

I hope this is as simple as i think .

-tokyomage

.....the feel of solitude hurts inside....
Darkzombies
13
Years of Service
User Offline
Joined: 25th Dec 2010
Location: In multiple tabs, most likely youtube.
Posted: 20th Nov 2011 18:11 Edited at: 20th Nov 2011 18:13
You can just check for collision and if its true do some random code, and if its not (Else command) then have it move. (If you post code I can help you that way too)



-------------------------------------------------------------
tokyomage
14
Years of Service
User Offline
Joined: 26th Sep 2010
Location: on your roof
Posted: 20th Nov 2011 22:44 Edited at: 20th Nov 2011 22:45
Hey thanks for this, helped .

-Tokyomage

.....the feel of solitude hurts inside....

Login to post a reply

Server time is: 2024-11-22 11:40:46
Your offset time is: 2024-11-22 11:40:46