January 17, 2021

Game Maker Minecraft Tutorial #1 – Terrain Generation



Make Video Games 2018 ►

In this video we learn how to create an entire terrain generation system within Game Maker. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

I’m the founder of codingmadesimple.com that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really appreciate it if you’d check out my content.

Twitter ►
Google+ ►
Patreon ►

Have fun learning!

Nguồn: https://sam-pointer.com/

Xem thêm bài viết khác: https://sam-pointer.com/game/

in Game
Related Posts

Talking Pierre the Parrot Gameplay Episode Android iOS iPhone iPad

July 14, 2020

July 14, 2020 21

Talking Pierre is in the house! Are you ready for some amazing guitar shredding? Pierre now rocks Smoke on the...

Tricky Fish Walkthrough

July 13, 2020

July 13, 2020 2

Tricky Fish Walkthrough Tricky Fish By Maxgame Please Subscribe for more videos ► Free Online Games, Gameplay and Walkthrough! ►...

Disney Junior Super Stretchy Game from Wonder Forge

July 7, 2020

July 7, 2020 1

The Disney Junior Super Stretchy Game has kids stretching to touch as many shapes, colors, and characters as they can...

This Test Is WATCHING Me! | The Watson Scott Test

July 7, 2020

July 7, 2020 25

Get your NEW Holiday Theory Wear! ►► Welcome To My WORST NIGHTMARE! ► We Will SAVE Undertale! | Deltarune ►...

Finding Dory POP UP GAME Like Trouble! Finding Dory Pop Up Game with Nemo, Hank, Dory & Destiny

July 12, 2020

July 12, 2020

Finding Dory Pop Up Game like TROUBLE! Join Kid Friendly TV and play the new Finding Dory board game “Finding...

DIY 5 Speed Gearbox from Cardboard

July 15, 2020

July 15, 2020 35

Amazing 5 speed gearbox DIY. In this video I will guide you gearbox build with 5 speed transmission from cardboard....

Final Fantasy Fables: Chocobo Tales – Nintendo DS Gameplay High Resolution (DeSmuME)

July 9, 2020

July 9, 2020 28

Final Fantasy Fables: Chocobo Tales – Nintendo DS Gameplay High Resolution (DeSmuME) Visit us at for more Final Fantasy Fables:...

Wooden Risk Board – Entire process sped up.

July 14, 2020

July 14, 2020 31

Here is my rendition of the classic Risk board game. I made this table as a TV stand about 10...

Pinball Marble Run

July 14, 2020

July 14, 2020 34

Pinball is fun but do you ever wish the playing field was bigger? Now our pinball track goes all over...

Gameboy Papercraft – Relaxing Paper Sounds ASMR

July 8, 2020

July 8, 2020 7

ASMR IS FOR EVERYONE, THAT IS WHY MY CONTENT IS FOR – GENERAL AUDIENCES Gameboy Papercraft – Relaxing Paper Sounds...

Unboxing Sega Game Gear

July 13, 2020

July 13, 2020 36

I get hold of an old Sega Game Gear and that means it’s unboxing time. Pimp My Original Gameboy: Mini...

Air Power Soccer Disk

July 11, 2020

July 11, 2020 21

Air Power Soccer Disk Wouldn’t it be great if you could combine air hockey and football to create the ultimate...

How to play Mastermind

July 12, 2020

July 12, 2020 9

Learn the rules to the board game Mastermind quickly and concisely – This visually rich video has no distractions, just...

[Android/IOS] The tale of Five Kingdoms – English Version Gameplay

July 14, 2020

July 14, 2020 8

[Android/IOS] The tale of Five Kingdoms (王國5:繼承者) – English Version Gameplay Famous Korea game developer presents! SS rank Korean style...

Generation Gap

July 16, 2020

July 16, 2020 34

A returning champ comes back to play our game where we pit a young against a not so young person...

Comments
  • Is this video outdated now? I followed the tutorial word for word and I got so many errors. Then I fixed those syntax errors and I’m still left with a few warning triangles

  • I did a thing in stone that, if under grass on generation, it changes to dirt

    if(place_meeting(x,y-32,obj_grass))

    instance_change(obj_dirt, true);

  • friends here is the code

    var sh;
    sh = (room_height / 2) – floor(random(room_height / 3));

    sh = (sh / 32) * 32;

    ah = sh;

    var dirt_level;
    var stone_level;
    var l;

    for(xx = 0; xx < room_width; xx += 32)
    {
    instance_create(xx, ah, obj_grass);

    dirt_level = ((room_height – ah) / 32) * 32;
    stone_level = ((room_height) / 32) * 32;

    //dirt level
    for(yy = ah; yy < dirt_level; yy += 32)
    {
    instance_create(xx, yy + 32, obj_dirt);
    l = yy;
    }

    //stone level
    for(yy = l; yy < stone_level; yy += 32)
    {
    instance_create(xx, yy + 32, obj_stone);

    }

    ah += choose(32, -32, 0);;
    }

  • Looking back at this video gives me serious nostalgia, and makes me realize how much i've changed as a person. I used to religiously use gamemaker 8.1 and studio back when i was just starting out on game dev, and now i've transferred into C#/C++, This is so surreal.

  • thanks you are awesome
    this code perform
    sh = (room_height / 2) – floor(random(room_height / 3));

    sh = (sh / 32) *32;

    ah = sh;

    var dirt_level;
    var stone_level;
    var l;

    for(xx = 0; xx < room_width; xx +=32)
    {
    ah += choose (32, -32, 0);

    dirt_level = ((room_height – ah) / 32) * 32;
    stone_level = ((room_height) / 32) * 32;

    instance_create(xx, ah, grass)

    //dirt level
    for(yy = ah; yy < dirt_level; yy += 32)
    {
    instance_create(xx, yy + 32, dirt);
    l = yy;
    }

    //stone level
    for(yy = l; yy < stone_level; yy += 32)
    {
    instance_create(xx, yy + 32, stone);
    }
    }

  • I would not use this if i were you unless your doing something very small if your going big i would look into ds_grids.

    But even that dose not help me.

    So if your good at programing and you want big worlds use unity.

  • Hello.This code same but it wont create stone. No errors.
    var sh = (room_height / 2) – floor(random(room_height / 3));

    sh = (sh / 32) * 32;

    var ah = sh;

    var dirt_level;
    var stone_level;
    var l;

    for(xx = 0; xx < room_width; xx += 32)
    {
    instance_create(xx, ah, object_grass);

    dirt_level = ((room_height – ah) /32) * 32;
    stone_level = ((room_height) /32) * 32;

    //dirt level
    for(yy = ah; yy < dirt_level; yy += 32)
    {
    instance_create(xx, yy + 32, object_dirt);
    l = yy;
    }

    //stone_level
    for(yy = l; yy < stone_level; yy += 32)
    {
    instance_create(xx, yy + 32, object_stone);
    }

    ah += choose(32, -32, 0);
    }

  • t is not completely random, as you see, the up and bottom sides are kind of mirrored. It is like creating straight line in random y position(assigned to grid) and generate blocks the same count up and down. 🙂

  • I know this might be a stupid question, but what does the "xx" mean? Like I know how x is horizontal stuff, but what does it mean when there are 2 of them next to each other?

  • in scrpit generate line 18 :malformed statementt :

    var sh = (room_height / 2) – floor(random(room_height / 3));

    sh = (sh / 32) * 32;

    var ah = sh;

    var dirt_level;
    var stone_level;
    var l;

    for(xx = 0; xx < room_width; xx += 32)
    {
    instance_create(xx, ah, obj_grass);

    dirt_level = ((room_height – ah) / 32) * 32;
    stone_level = ((room_height) / 32) * 32;

    //dirt level
    for(yy = ah; yy < dirt_level; yy += 32);
    {
    instance_create(xx, yy + 32, obj_dirt);
    l = yy;
    }

    ah += choose(32, -32, 0);
    }

  • When I'm trying to run the script for generation then it says that there's an error, unexpected symbol at line 1 position 8 in expression… I've typed in exactly what you did~? pls help daddi i dont want to die

  • _________________________________________
    COMPILATION ERROR in Script: generate
    Error in code at line 1:
    var sh = (room_height / 2) – floor(random(room_height / 3));
    ^
    at position 8: Unexpected symbol in expression.

  • Thankyou really much. It helped me a lot. Im new to game maker, I tried to make my own, but always failed, because I don't know all functions and how creatively and correctly use them. This is good way to learn. Well some things I don't understand well. how yy and xx works and from where you got that variables, what and how exactly every level algorithm works. I tried different ways to get rid of grass growing on stone but I couldn't!

  • ############################################################################################
    FATAL ERROR in
    action number 1
    of Create Event
    for object obj_generate:

    Variable obj_generate.object_grass(100003, -2147483648) not set before reading it.
    at gml_Script_generate (line 8) – instance_create(xx, ah, object_grass)
    ############################################################################################
    ——————————————————————————————–
    stack frame is
    gml_Script_generate (line 8)
    called from – gml_Object_obj_generate_CreateEvent_1 (line 1) – generate();

    Help!

  • help please whenever i load my game stone is everywhere but where grass and dirt is so my player is stuck in the same level of stone everytime!!

Leave a Reply

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