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 Discussion / Collision challenge

Author
Message
JohnFP
21
Years of Service
User Offline
Joined: 5th Feb 2004
Location: Maryland
Posted: 18th Feb 2004 20:00
Ok, I have posted this question on the newby board and now I want to take a shot on this board. I had to modify the objects which were designed to look like mirrors and mount with a standard box. Also there is no laser. I have a question with collision, well actully hit. Look at my code, and you are welcome to load and run it. Just after the rem statement "Main Loop" you will see the do loop. Just after that you see the rem statement "move focus ball". For some reason I have to put a second "move object z,speed" just prior to the second "if object hit. Why? z is always greater then 70 thus the first move and the two ifs should alway be hit. If I take out the second "move object" within the "if z>79" the collision with the second object never takes effect.

Anyone have a clue?

Login to post a reply

Server time is: 2025-05-23 03:45:09
Your offset time is: 2025-05-23 03:45:09