Have you ever wondered what it takes to recreate Google Chrome’s Offline T-Rex Run game? Well, now you can follow me as we recreate it together! We’ll be using GameMaker Studio 2.

Support This Channel ▶
Follow me on Facebook ▶
Follow me on Instagram ▶
Follow me on Twitter ▶
Get Element Earth ▶
Get cool assets ▶

▼ Useful Links and Resources ▼
GM Studio 2 Project ▶
Sprites For This Series ▶
GameMaker Community Forum Discussion ▶
Get GameMaker Studio 2 Free ▶

▼ Related Videos ▼
Endless Runner Part 1 ▶
Endless Runner Part 2 ▶
Endless Runner Part 3 ▶
Endless Runner Part 4 ▶
Endless Runner Part 5 ▶
Endless Runner Part 6 ▶
Endless Runner Part 7 ▶
Endless Runner Part 8 ▶
Endless Runner Part 9 ▶

▼ More ▼
General GameMaker Playlist ▶
GameMaker Networking ▶

Happy Coding 😀

#gamemaker #gamemakerstudio #gamedev #makegames

Nguồn: https://maturegamerpodcast.com/

Xem thêm bài viết khác: https://maturegamerpodcast.com/category/giai-tri

admin

11 thoughts on “Make an Endless Runner Game – Creating Obstacles – GameMaker Studio 2”

  1. Those obstacles just keep coming. Subscribe today https://www.youtube.com/channel/UCAumdO1yv-di4fI6IZQIy3Q?sub_confirmation=1

  2. Its been a while since you uploaded but this line of code = if (place_meeting(x, y + 1, oBlock)) doesn't work (btw oBlock is my block object name.)

  3. _________________________________________
    ############################################################################################
    ERROR in
    action number 1
    of Alarm Event for alarm 0
    for object obj_controller:

    instance_create_layer :: specified layer "Instances" does not exist
    at gml_Object_obj_controller_Alarm_0 (line 4) – var i = instance_create_layer(room_width + 100, room_height – 75, "Instances", obj_obstacle);
    ############################################################################################
    gml_Object_obj_controller_Alarm_0 (line 4)

    What does that mean?

  4. hi there. i know it’s been a while since you’ve uploaded this video but i just have a quick question. when i open the game, none of the obstacles are coming towards the player. i’ve followed all of the code and triple checked to see if i’ve gotten it all right. even after that, none of the obstacles seem to be appearing. could i please have some help with that to know where the code might’ve gone wrong?

  5. does anyone how to fix this error?

    _________________________________________

    ############################################################################################

    FATAL ERROR in

    action number 1

    of Step Event0

    for object obj_obstacle:

    global variable name 'speedModifier' index (100012) not set before reading it.

    at gml_Object_obj_obstacle_Step_0 (line 1) – speed = -20 * global.speedModifier;

    ############################################################################################

    ——————————————————————————————–

    stack frame is

    gml_Object_obj_obstacle_Step_0 (line 1)

  6. randomize();

    var count = irandom_range(1, 2);

    var i = instance_create_layer(room_width + 100, room_height -75, "Instances", obj_Obstacle);

    i.sprite_index = choose(spr_Small_Cactus, spr_Big_Cactus, spr_Bird);

    switch (i.sprite_index)

    {

    case spr_Small_Cactus:

    case spr_Big_Cactus:

    i.image_speed = 0;

    i.image_index = irandom_range(0, sprite_get_number(i.sprite_index) – 1)

    if (global.speedModifier > 1.5)

    {

    if (count == 2)

    {

    var j = instance_create_layer(room_width + 100, room_height -75, "Instances", obj_Obstacle);

    j.sprite_index = choose(spr_Small_Cactus, spr_Big_Cactus);

    j.image_speed = 0;

    j.image_index = irandom_range(0, sprite_get_number(j.sprite_index) – 1);

    }

    }

    break;

    default:

    i.image_speed = 1;

    i.y = choose(room_height – 85, room_height – 145, room_height – 180);

    }

    alarm[0] = room_speed * random_range(1/global.speedModifier, 3/global.speedModifier);

  7. I don't have a runtime error and I have 2 games with same room size. One works correctly. The second game has all the obstacles way at the bottom of the room, below the box & dino. What would cause this? I've added show_message to verify room height, etc.

  8. Hi GSG, I have a problem, I did everything you did but at 3:32 line 5 as you can see the big and small cactus bird that appeared in red, but on my computer it was blue! (If you want to see: https://image.ibb.co/hPCm4U/error.png ) Can you help me with this?

Leave a Reply

Your email address will not be published. Required fields are marked *