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.

2D All the way! / help with arrays

Author
Message
lokatsis
22
Years of Service
User Offline
Joined: 11th Feb 2004
Location: greece
Posted: 24th Jun 2004 01:15
hi im sending this mail because i d like to help me with my game on how using dims to multiply my enemies and shoot them.
its a space game
here is a piece of code of my game so you can help me better







this code only has one enemy but i want to multiply them to 10 and when i shoot and the bullet hits an enemy sprite the specific sprite to be deleted
i hope that you can help to create them using arrays thanks

THE AOOS
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 24th Jun 2004 04:25 Edited at: 24th Jun 2004 04:26
Say you have 10 enemies. And you can fire up to 10 bullets. You'll need 2 for/next loops. One to scan through the bullets and one to scan through the enemies.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
lokatsis
22
Years of Service
User Offline
Joined: 11th Feb 2004
Location: greece
Posted: 25th Jun 2004 16:24
could you explain this better? or using an example?

THE AOOS

Login to post a reply

Server time is: 2026-06-09 19:41:14
Your offset time is: 2026-06-09 19:41:14