gamemaker blitz game

Information about object: obj_player
Sprite: spr_player
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_bomb
Sprite: spr_bomb Solid: false Visible: true Depth: 0 Persistent: false Parent: Children: Mask:
No Physics Object
Create 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();

No comments:

Top 3 UX Design Articles of 2024 to Remember

Based on most subscriptions ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *