please help in my first proper game in flash. The problem is that when you shoot the man he dies but once he's shot and you shoot him again he comes back alive and you can shoot him again. also I don't know how to make ammo and i want to use it. another problem is i don't know how to make the bullet do a crack in the building if it is shot. the crack image is the 'crack' symbol in the library. if you'd like to take a look at the thing then here's the download:
.fla: [url=http://www.mediafire.com/?uzdzugoznm2]
.swf: [url=http://www.mediafire.com/?nmz1mjtwa3i]
hope someone can help. also, im a beginer so if you could explain the actionscript then that would help. thanks
No, put cracks.push(createCrack) right after you position it's x value. (And no, it doesn't have to be in a clipEvent, I tested this before I posted it). And put the removeMovieClip() line of code on the last frame inside the man movieClip.
On the start mission 2 button, instead of going to the frame with the mission failed screen, go to the frame with the next level. And when you shoot a civilian gotoAndStop the frame with the mission failed screen, but if you shoot the correct guy, gotoAndPlay (or gotoAndStop) the "you beat level2" frame
i did the crack in mission 2 and i changed building1 to bar,restraunt and wall and in the last frames of the people id id the remove clip. why doesnt it work now???
i solved the cracks now but when i do a seperate fail and win frame and i do gotoAndPlay win then it goes and plays it does a flick of the fail frame because it just before it
thats what i did except when it going there it shows the fail frame for a fraction of a second (but long enough to see it clearly) and then shows the win screen
I think your problem is that you aren't changing civ to true correctly. When a civilian is killed, do something like _root.failMission.civ = true; // or whatever your failed mission screen is called.