help..trying to loop sprites (space invaders)
Posted: March 3rd, 2012, 1:27 pm
hey guys,
making a lame version of space invaders. except i only want one or 2 on at anyone time. now that isnt a problem. ive got the coding down for it. but when i shoot them down, i wish for them to "respawn" so to say. basically for the coding loop to go around again. instead of me having to type in 30 copy 'n' paste the sprite invaders. if that make sense.
ive tried the while loop and the for loop but ive had no luck with either. the while loop actually comes up with an exception error when i try and run it.
btw im using chili directx framework.
any help would be super awesome as its really doing my head in.
making a lame version of space invaders. except i only want one or 2 on at anyone time. now that isnt a problem. ive got the coding down for it. but when i shoot them down, i wish for them to "respawn" so to say. basically for the coding loop to go around again. instead of me having to type in 30 copy 'n' paste the sprite invaders. if that make sense.
ive tried the while loop and the for loop but ive had no luck with either. the while loop actually comes up with an exception error when i try and run it.
btw im using chili directx framework.
any help would be super awesome as its really doing my head in.