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 / Newbie trying to program a simple Space Invaders

Author
Message
ccliffy
21
Years of Service
User Offline
Joined: 2nd Apr 2003
Location:
Posted: 9th Jul 2003 05:25
Hi,
I am trying to code a simple (one target so far) Space Invaders. I have made a moving target and a player/shooter that can move via rrow keys and can shoot. My problem is the collision detection/hitting target. It dtet collision and delete bullet and target but it seems being in a loop means I cannot reference any delted object.
What am I doing wrong?

Thanks,
Cliff
y!Ck
21
Years of Service
User Offline
Joined: 2nd Jul 2003
Location: Europe - Netherland
Posted: 9th Jul 2003 10:25
hi , i have been playing with your code for a little while and thought of: if there's an if command then can be laso something with the lines between if and endif so played with that and now ive deleted: delete object bullet and it works.
the bullet is placed back to its original place in your loop
or something and now you just have to make new targets

Login to post a reply

Server time is: 2024-11-24 23:01:24
Your offset time is: 2024-11-24 23:01:24