Hey so here is the problem, im making a 2D zombie survival game, im getting a bit stuck on making 'limmited Ammunition' as a game feature. Ive tried a few different meathods but i just dont really know how or where to start. i will need 'Ammo' as a varriable, I know that much, please help me thanks
Offline
if <(ammo) > (0)> set [can_shoot v] to (1) else set [can_shoot v] to (0) endLike that?
Offline
What is a 2d zombie survival what the name of all the scrip i need
Offline
mm... not really, what ive been trying to do is like, 'when you fire, change ammo by -1' and also 'if ammo = 0 then don't allow to fire' I just dont know how to script this correctly??
Offline
On your firing script, add an "if" to it and make it check your ammo count (if ammo > 0) etc.
when i receive [fire v] if <(ammo) > (0)> firing script here
Last edited by Stickman704 (2012-02-25 15:41:26)
Offline
ok thanks that was helpfull
Offline
Here's a script.
(for the bullet)
when gf clicked forever if <choose condition> if <(ammo) > (0)> shooting script here change [ammo v] by (-1) end endReplace the CHOOSE CONDITION block with a <KEY ??? PRESSED?> or a <MOUSE DOWN?> block.
Offline