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 / Bullet Collision Help

Author
Message
zencreator03
21
Years of Service
User Offline
Joined: 11th Jul 2003
Location:
Posted: 11th Jul 2003 22:03
K Ive been trying to create a simple game( if u cud call it a game ), where u have yourself(a circle) and a static(but hopefully soon moving) enemy box, i want it so that when u press spacebar a dot is fired from the your postion(circle) to the box and then the box dissapears, ive tried it in my code below but it dont work at all.Thankyou for your time.
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 11th Jul 2003 23:15
to move the dot you need to delete the dot by painting over it in the background colour and then showing it at the next position, then you need to check the screen with point to find when the colour isn`t zero, that means you are about to plot over something else, and since the something else must be the box then you can draw another box over it in black ink to make it disapear.
but to be honest all of that is giving yourself a lot of grief, why not just use sprites and the built in sprite collision?, far easier and far less trouble to convert to a first full game, plus the 2D commands are more included for legacy than creating games in, unless you plan to make some older "vector graphics" game anyway.

Login to post a reply

Server time is: 2024-09-20 15:40:23
Your offset time is: 2024-09-20 15:40:23