Game Maker Minecraft Tutorial #1 – Terrain Generation

[ad_1]
Brand new 2017 Game Maker Studio: 2 Course available right now

Game Maker Minecraft Tutorial

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.

Have you ever wanted to create games? Have you ever gotten fed up with it being to difficult? Well now is the time to thank me and possibly subscribe because you have just found the channel for you! Game Maker Tutorials, Java Game Programming, Unity3D Tutorials, Batch, C++ and much much more! This is the channel for you, the one stop shop for an exploration of your hidden talent as a game developer. Unleash your potential and go wild with imagination when you finally figure out how to make any game you want!

Visit CodingMadeSimple for more exclusive tutorials and get the help you need to succeed as your very own indie game developer!

Follow me on twitter for exclusive content and interaction with me!

Game Maker Studio: Programming
Game Maker Studio: Tutorial
Java Programming
Game Programming
Game Tutorial
Programming Tutorial


Posted

in

by

Tags:

Comments

32 responses to “Game Maker Minecraft Tutorial #1 – Terrain Generation”

  1. BubbleDerp Avatar

    now i need to figure out how to turn this into 3d

  2. AwkwardStudios Avatar

    My generation matches his without error which is weird to me

  3. Xconn Avatar

    my dirt keeps flashing from dirt to stone to grass

  4. Northsoft Corporation Avatar

    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);
    }

  5. Ritzatic Avatar

    also don't type var sh, just type sh

  6. Ritzatic Avatar

    i thought this would be 3d

  7. MrPinappleBoy Avatar

    this dosent work anymore could you update this video?

  8. Its time To shine Avatar

    Stone over grass is nattral

  9. Hyperion Avatar

    I know this may be unsolvable or helpable. But I want to have grass corner blocks which obviously go on the corners and edges when the terrain changes? Can anyone help me in doing this please?

  10. Alvins Ruža Avatar

    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. 🙂

  11. PiePower483 Avatar

    How do i make a * on key board

  12. Sorcerer Panza Avatar

    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?

  13. Alexandre Nicolas Avatar

    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);
    }

  14. JustASlaveForOniChan AndMyManyWaifus Avatar

    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

  15. MiKeSHaTtEr Avatar

    This is not minecraft, its terraria, we want a fully 3d minecraft, not this stuff!

  16. mike3D Avatar

    i did object instead of obj lol

  17. [GC] Great Corn Avatar

    This is fucking Game Maker : STUDIO, not just Game Maker, why the fuck is everyone so dumb?!

  18. Piotr Darnowski Avatar

    Will it wotk on 1.4? cause im trying and it doesn't

  19. Raihan Gaming Avatar

    _________________________________________
    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.

  20. Sasakowski Avatar

    That Tutorial makes a LOT OF FUN =)

  21. Stickimator Avatar

    does any body know how he learned coding

  22. Alvins Ruža Avatar

    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!

  23. ItsRainingBeef Avatar

    ############################################################################################
    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!

  24. Squeezy Frog Avatar

    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!!

  25. Yoshubs Rocketoid Avatar

    I would like a working code that I could copy please 😀

  26. Zooch Avatar

    please help, whats wrong with this code?

    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);

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

    //Dirt level
    dirt_level = ((room_height – ah) / 32) * 32;

    stone_level = ((room_height) / 32) * 32;

    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);
    }
    }

  27. Bruninho Games Avatar

    Muto obrigado eu sou um brasileiro que estava esperando muito por isso que Deus te abençõe

  28. Zooch Avatar

    what does malformed fo statement mean?

  29. Gamemaker Locker Avatar

    What version is he using

  30. tiger of the sky Avatar

    i ran in to a problem, heres the error output:

    _________________________________________
    ############################################################################################
    FATAL ERROR in
    action number 1
    of Create Event
    for object restart:

    Variable restart.ah(100003, -2147483648) not set before reading it.
    at gml_Script_GenerateTerrain (line 14) – ah += choose(32, -32, 0);
    ############################################################################################
    ——————————————————————————————–
    stack frame is
    gml_Script_GenerateTerrain (line 14)
    called from – gml_Object_restart_CreateEvent_1 (line 1) – GenerateTerrain();

    and heres my code for GenerateTerrain:

    var sHeight = (room_height/2) – floor(random(room_height / 3));
    sHeight = (sHeight / 32) * 32;

    var aHeight = sHeight;

    var gLevel;
    var dLevel;
    var sLevel;

    for (xx = 0; xx < room_width; xx += 32)
    {
    instance_create(xx, aHeight, oBlockGrass);

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

    }

    can u plz help?

Leave a Reply

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