# If someone can help me with my game i will be eternally greatful

**URL:** <https://forum.kirupa.com/t/if-someone-can-help-me-with-my-game-i-will-be-eternally-greatful/96922>\
**Category:** Uncategorized\
**Created:** [December 15, 2003, 2:42pm UTC](https://forum.kirupa.com/t/if-someone-can-help-me-with-my-game-i-will-be-eternally-greatful/96922 "2003-12-15T14:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)\
**Post date:** [December 15, 2003, 2:42pm UTC](https://forum.kirupa.com/t/if-someone-can-help-me-with-my-game-i-will-be-eternally-greatful/96922/1 "2003-12-15T14:42:08Z")

</div>

ok i need help badly. ok tis is what i am doing, i am making a game where its a first person shoot except u dont move around. u have gun and aimer. the badguys popup every so often. to kill them, u just click on them. the problem is, that when u click on them even when your out of ammo, they die. so i need that to change.

secondly, i have a health points thing at 100. means that u have 100 health/hp. when the hp becomes 0 or less, than gotoandplay a scene.

3rdly, i need to have it when u kill/click all 4 badguys i need it to gotoandplay a scene.

(for my ammo, all i have is 8 frames. 1st has all 7 bullets, than 2 frame has 6, 3rd has 5 and so on. on the last frame u have to press spacebar. that will gotoandplay(1);

heres some of my code.

hole = bullethole

ActionScript:--------------------------------------------------------------------------------stop();  
//  
shot = new Sound();  
shot.attachSound(“deagle”);  
reload = new Sound();  
reload.attachSound(“de\_clipin”);  
empty = new Sound();  
empty.attachSound(“empty”);  
//  
Mouse.hide();  
//  
gun.onMouseMove = function() {  
this.\_x = \_xmouse;  
if (this.\_x\<80) {  
this.\_x = 80;  
}  
updateAfterEvent();  
};  
//  
gun.onMouseDown = function() {  
if (ammunition.ammo) {  
c = 1;  
\_root.attachMovie(“hole”, “h”+c, c);  
\_root[“h”+c].\_x = \_root.sights.\_x;  
\_root[“h”+c].\_y = \_root.sights.\_y;  
this.play();  
shot.start();  
ammunition.nextFrame();  
} else {  
empty.start();  
}  
};  
//  
sights.onMouseMove = function() {  
this.\_x = \_xmouse;  
this.\_y = \_ymouse;  
if (this.\_y\>310) {  
this.\_y = 310;  
}  
updateAfterEvent();  
};  
//  
reloadGun = new Object();  
reloadGun.onKeyDown = function() {  
if (Key.isDown(Key.SPACE) && ammunition.reloadAllowed) {  
reload.start();  
ammunition.gotoAndStop(1)  
}  
};  
Key.addListener(reloadGun);

* * *

so if you could help me with naming things and enabling/disabling things that would be great!

fyi: the badguys instances names are  
t1  
t2  
t3  
t4

plz help…

heres a sample of my .swf  
[www.freewebs.com/headface/de\_dust.html](http://www.freewebs.com/headface/de_dust.html)
