baisically, add 2 if blocks after when mouse button clicked, or watevr u used. the do if ammo > 0, play sound "whatever" then for the other u use if ammo = 0, and leave it blank
The ammo variable is a little glitchy for some strange reason that I don't know. This, unfortunately, causes trouble when reloading the gun because you will use up an entire set of ammo if you shoot only once.
Does anyone know how to make it so that when the ammo is gone the shotgun noise doesn't go? well i do all you have to do is make a variable that says ammo then click controls scroll down tell you find something that says wait until drag it to the scripts go to operators get the one with the 2 white boxes and the alligators open mouth pointing left drag that to the white box on the wait until thing. to be continued...................................................................................
then click variables you will see a oval that says ammo drag that into the first white box in the operetor in the secont you type in 0 and then make it do what you want
make a varible and say set (varible name) to 7 and if mouse down change (varible name) by -1 and then make if (varible name) = 0 and mouse down play any other sound!I recoment gun clock.
I have the edited project(in the ammo box, it doesnt have the pics of the bullets), but havent released it. if you want it, let me know and i will release it
you should make little peoples get bigger and bigger to you and ya have to shoot them before they get to big and blow you up and your health goes down.
Comments
You need to be logged in to post comments
Add a Comment
baisically, add 2 if blocks after when mouse button clicked, or watevr u used. the do if ammo > 0, play sound "whatever" then for the other u use if ammo = 0, and leave it blank
The ammo variable is a little glitchy for some strange reason that I don't know. This, unfortunately, causes trouble when reloading the gun because you will use up an entire set of ammo if you shoot only once.
to make it easier. wait until score>0 play sound out of ammo until done
Does anyone know how to make it so that when the ammo is gone the shotgun noise doesn't go? well i do all you have to do is make a variable that says ammo then click controls scroll down tell you find something that says wait until drag it to the scripts go to operators get the one with the 2 white boxes and the alligators open mouth pointing left drag that to the white box on the wait until thing. to be continued...................................................................................
then click variables you will see a oval that says ammo drag that into the first white box in the operetor in the secont you type in 0 and then make it do what you want
IF AMMO > 0 play the sound.
make a varible and say set (varible name) to 7 and if mouse down change (varible name) by -1 and then make if (varible name) = 0 and mouse down play any other sound!I recoment gun clock.
nice game!
check out my game its like yours except better and made later (link to project)
somehow the link isn't working ill try again (link to project) (link to project) (link to project) (link to project) (link to project) (link to project) (link to project) (link to project) (link to project) (link to project)
(view all replies)to stop the shot gun sound you need the variable ammo so - if ammo > 0 play sound shotgun. . .
dear squab2468 to stop the gun bang sound when your ammo is out you go to sound then stop all sound From:dakota1999
no enemies? also, it's too slow. needs work
if you want to know how to do a damageable environment check this out... (link to project)
things to fix: up and down motions, make the target on the mouse, try to make damageable environment, and possibly add enemies. But... COOL!!!!!!!!!
their are no enemys
COOL
TO GET RED OF THE NOISE PUT WHEN VARABULS= 0 STOP SRIPT FOREVER
what do i do?
Even though it looks simple people who do scratch know how hard it is to make something as simple as this.
get the if/else thing and put if ammo>0 play sound gun broadcast gunshot else play sound unloaded.
where did you get the gun sprite?
if you still are on scratch you have to use a varible called amo and when amo = 0 dont make sound
i now how to make no nose wen amo gon easy
Release it!!!!!! this is really cool!
BEST THING EVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have the edited project(in the ammo box, it doesnt have the pics of the bullets), but havent released it. if you want it, let me know and i will release it
why aren`t there any enemys?
can i use this? thanks!
dude set the rotation center at the sprite's aiming thingy
its all right but there no guys
YAY i finally got the bullets to hide and show properly! although it doesn't work offline, it works online!
how do you update it online i thought you had to put it all on again.
nice
you should make little peoples get bigger and bigger to you and ya have to shoot them before they get to big and blow you up and your health goes down.