Sprite: spr_player
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code: global.can_shoot=true; motion_set(0,4);
Step Event:
execute code:
if x>1000
{
y+=16;
x=-32;
}
if mouse_check_button_pressed(mb_left) && global.can_shoot
{
instance_create(x,y+16,obj_bomb);
global.can_shoot=false;
}
Collision Event with object obj_tower:
execute code:
show_message("You died");
game_restart();
Information about object: obj_bombSprite: spr_bomb Solid: false Visible: true Depth: 0 Persistent: false Parent:Children: Mask: No Physics ObjectCreate Event:execute code: motion_set(270,3);Step Event:execute code: if y>800 { instance_destroy(); global.can_shoot=true; }Collision Event with object obj_tower:execute code: with (other) instance_destroy(); global.can_shoot=true; instance_destroy();

0 Comments