Greetings,
Slap me upside the head if this is an obvious question to ask - I do the majority of my forum posting from work, dont have DB installed, or a manual.. so ideas just pop in to my head.
Anyone who has ever coded anything in VB, will know that you can create a control array for objects, meaning you can have numerous objects of the same name loaded, and address them by index. This makes handling AI in top down shooter games (or anything with an arcady mass enemy kinda play for that matter) really easy.
I posted a few sprites the other day, the game currently under production, is a bit of a Bubble Bobble clone. Currently got a lil flow diagram in my head, of how the enemies are going to work. I need to do something like this, in DB:
[QUOTE]
global number_of_enemies as integer
dim enemy_count as integer
for enemy_count = 0 to number_of_enemies
--insert enemy AI of enemy(enemy_count) here--
next number_of_enemies
[/QUOTE]
Are control arrays like this possible in DB? If possible, I need to assign flags to each enemy too.. including it's current direction, is it jumping, is it p**sed off yet, is it out of play etc..
If I were VB'ing this, I could do something sloppy and have captions loaded with each enemy.. or create a complex array (make this dynamic depending on the number of enemies on screen)
Feel free to shout RTFM if necessary.. it just helps if I write these kinda things down as a reminder when I get home
Cheers,
- Steve