Forums

ammo tutorial help


Subscribe to ammo tutorial help 4 posts, 2 voices

 

Jul 4, 2008 8:57am

coolcat_designs coolcat_d... 8 posts

can someone help me with this. i am making a shooting game with ammo determines if you could still fire bullet using left click of the mouse. if ever the bullet is equal to zero (0), the player could no longer hit the target even if how many times he/she clicks the left mouse button.

float like a butterfly and sting like a bee

 

Jul 4, 2008 5:19pm

miner1666 miner1666 107 posts

add in the create event:
{
ammo = 10
}
and in the keyboard event for shooting add
if ammo > 0
{
ur code
ammo -= 1;
}

><><><><><><><><><><><><><
------------------------------
><><><><><><><><><><><><><
-------------------------------
><><><><><><><><><><><><><

 

Jul 5, 2008 12:52am

coolcat_designs coolcat_d... 8 posts

how will i do it with out using any codes. only the drag and drop by gamemaker. pls give me tips on this one. thanks ahead

float like a butterfly and sting like a bee

 

Jul 5, 2008 8:22am

miner1666 miner1666 107 posts

i can send u a gmk file in wich ill show u how to do that.
this is the link: http://www.yoyogames.com/games/show/42944
i hope u can use it.

><><><><><><><><><><><><><
------------------------------
><><><><><><><><><><><><><
-------------------------------
><><><><><><><><><><><><><