View Full Version : shooting game problems
darkman
12-11-2001, 07:44 AM
i need the code for:
1)bad guys to loop so once i shoot all of them they show up again
2)score keeper so when i shoot a bad guy it counts
3)timer
i know that this might be too much to ask, but please help i really want to make a shooting game and i really want to learn more about flash too! I APPRECIATE EVERY HELP I GET!
ost on the newbies board please
Jesse
12-11-2001, 09:59 AM
Since the code he's asking for is kinda complicated I think it can stay here. Darkman, we're glad to help but you've asked for a fair bit. Perhaps revise some open source at www.flashkit.com/movies/ for similar games to that which you're trying to make, then ask us if you have some specific problems.
ActionFlash2
07-04-2008, 01:07 AM
I actually need some help with a simple problem dealing with a shooter, well the problem is I have the actionscript all set in for everything except this, how do i make it where when i click on the target with the crosshair the Points go up <- i have that i just cant get it to not rise unless the crosshair is ON the target, for Example if you click anywhere on the screen the score rises. How do I fix this? please help
tango88
07-04-2008, 08:54 AM
1)bad guys to loop so once i shoot all of them they show up again
Basically, you set a variable, say enemy_number=20; and every time one is shot, you enemy_number--; and then if(enemy_number==0){load_more_enemies();} where you have set load_more_enemies() as the function that loads enemies.
I know that's quite general, but your question was pretty general, too.
2)score keeper so when i shoot a bad guy it counts
Well, that's easy. You set score=0; and when a bad guy is shot, score+=5; (to add five points). Display it on the screen in a dynamic text box.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.