ludum-dare-22/objects/obj_player/Mouse_54.gml

12 lines
210 B
Plaintext

if global.bombs < 1
exit;
if global.timeout > 0
exit;
global.bombs -= 1
with (obj_enemymanager)
instance_destroy()
instance_create(x,y,obj_bombeffect)
global.timeout = 15
global.invuln = 30