critter2003
09-16-2008, 06:53 AM
I'm making a Flash game for a university project and I'm having trouble with some of the coding. It's a geometry wars type shooting game where the player controls a character that can shoot in any direction around it at the enemies.
At the moment only the first bullet can kill the enemy. I've tried a combination of things and am guessing a for loop will fix my problem but I haven't been successful so far.
Secondly the hit detection between the enemies and what the player controls needs some fixing. I'd like it to only detect when the player hits the enemies, not their bounding box. For example, you can't go between the green enemies in my demo. I was experimenting with hitArea instead but again, couldn't get it to work.
I'm sure it's not too difficult but if someone could help that would be appreciated. I've attached a zip file with both my .swf and .fla files.
At the moment only the first bullet can kill the enemy. I've tried a combination of things and am guessing a for loop will fix my problem but I haven't been successful so far.
Secondly the hit detection between the enemies and what the player controls needs some fixing. I'd like it to only detect when the player hits the enemies, not their bounding box. For example, you can't go between the green enemies in my demo. I was experimenting with hitArea instead but again, couldn't get it to work.
I'm sure it's not too difficult but if someone could help that would be appreciated. I've attached a zip file with both my .swf and .fla files.