GameMaker Dodge the Barrels

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:

count=200;//set a timing counter
alarm[0]=room_speed;//set spawn alarm
Alarm Event for alarm 0:
execute code:

instance_create(random(room_width),0,obj_barrel);//spawn a barrel
alarm[0]=count;// rest alarm with count value
count-=5;//decrease count
if count<5 count=5;//keep at 5

Step Event:
execute code:

//movement
if (keyboard_check(vk_left))  {x-=5;} 
if (keyboard_check(vk_right))  {x+=5;} 


if place_meeting(x,y,obj_barrel)// if collides with barrel
{
show_message("You Died");
game_restart();
}

Information about object: obj_barrel
Sprite: spr_barrel Solid: false Visible: true Depth: 0 Persistent: false Parent: Children: Mask:
No Physics Object
Create Event:
execute code:


motion_set(270,3);//move down at speed 3
Step Event:
execute code:

if y>room_height instance_destroy();//destroy when reached bottom of screen

vuejs Replace any character that is not a digit or a period

GameMaker Circular cooldown

obj_abilities

Information about object: parent_abities
Sprite:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:

Children
object1
object2
object3
object4
object5
object6
Mask:
No Physics Object

Step Event:
execute code:

if (canSkill==1 &&  mouse_check_button_released(mb_left)&& position_meeting(mouse_x, mouse_y, id)) {
timer = room_speed * second
canSkill=0;
}

if (canSkill==0 && timer > 0) {
timer--;
}

if (canSkill==0 && timer ==0) {

canSkill = 1
}



object1 - object6

Information about object: object1
Sprite: sprite0_Untitled_1 Solid: false Visible: true Depth: 0 Persistent: false Parent: parent_abities Children: Mask:
No Physics Object
Create Event:
execute code:

second = 1
timer = 0
canSkill = 1
Draw Event:
execute code:

draw_sprite(sprite_index, image_index, x, y)

var v;
v = ((timer / (room_speed * second))* 100)/100

if (v < 0) v += 1

draw_set_alpha(0.5)
if (gamemaker_registered)
draw_rectangle_cd(x + 43, y - 43, x - 43, y + 43, v);
else draw_rectangle_cd_lite(x + 43, y - 43, x - 43, y + 43, v)
draw_set_alpha(1)

How the New York Times led to the fall of Assad

Anti-semitism by the New York Times actually made Israel safer ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *