GameMaker Studio 2 Tutorial - Character Movement for a Maze Game

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 27

  • @arnaldo.mk7
    @arnaldo.mk7 4 года назад +1

    Thank you so much, I was looking for this the whole night. A tip for all those who prefer code version like me, there is an option in the editor of events called Convert to GML when you do a right click, that converts everything to code. I'm starting with GameMaker and I hope to help with a little information that took me some time to find if you are new too.

  • @kalaiselwenjayabalan4924
    @kalaiselwenjayabalan4924 3 года назад

    man 3am in the morning watching this solved all my project problems in one video 11/10

  • @groovy7715
    @groovy7715 2 года назад

    hey, I made the wall solid, when I played it, he walked right through it....plz help

  • @irwinrina11009
    @irwinrina11009 5 лет назад +1

    When I "run the game" it won't make me move?

  • @tcdagoat
    @tcdagoat 4 года назад +1

    Hey can I pay you to make a game for me on game maker

  • @pavankumardodawad7226
    @pavankumardodawad7226 4 года назад

    How to switch rooms in this game plz tell me

  • @fredforshee9459
    @fredforshee9459 4 года назад

    How do you turn on the grid while the game is running, Thanks

    • @EricGallery
      @EricGallery  4 года назад +1

      The grid is a graphic I programmed into the demonstration. It is not built in.

    • @fredforshee9459
      @fredforshee9459 4 года назад

      @@EricGallery Thank You

    • @fredforshee9459
      @fredforshee9459 4 года назад

      @@EricGallery Do you have any books on gamemaker studio 2

    • @EricGallery
      @EricGallery  4 года назад +1

      I don't now. I got started with a workbook for GameMaker 8.0 and just picked up things along the way after that.

  • @Raymond13557
    @Raymond13557 6 лет назад

    good job on this one buddy!

  • @ketama4984
    @ketama4984 6 лет назад

    if i press a directon key the sprite goes 2 steps further than usual how can i fix this please help

    • @EricGallery
      @EricGallery  6 лет назад

      Enes Yasar How far into the video did you have the problem? Do you mean it goes two grid squares too far?

    • @ketama4984
      @ketama4984 6 лет назад

      Eric Gallery 33:30 i believe and yes that’s what i mean it goes like 2 grids too far once i click

    • @EricGallery
      @EricGallery  6 лет назад

      It may be that your spd variable in the Create event is not a factor of your grid variable. The spd variable has to be able to divide the value of grid evenly. eg. if your grid is 48, your spd has to be 1, 2, 3, 4, 6, 8, 12, 16, 24 or 48. Let me know if that helps. Explained at 14:30 in the video.

    • @ketama4984
      @ketama4984 6 лет назад

      Eric Gallery actually this is something we have to do for school and i don’t have this program home and school begins over 4 day’s but thanks for the reply ill let you know if it worked

    • @ketama4984
      @ketama4984 6 лет назад

      this actually helped thank you

  • @naqashkhan3294
    @naqashkhan3294 7 лет назад

    where is part one??

    • @EricGallery
      @EricGallery  7 лет назад

      There is no part one. But here is a link to the video that shows how to make the walking sprites. ruclips.net/video/qfZxQYxLshE/видео.html

  • @naqashkhan3294
    @naqashkhan3294 7 лет назад

    bro can u teach me how creaet endls game

    • @EricGallery
      @EricGallery  7 лет назад +1

      Do you mean where you can walk in any direction forever? If so, I plan on making a tutorial for this for this sometime after Christmas.

    • @22oov
      @22oov 5 лет назад

      ok bro

  • @animeonenbekef2641
    @animeonenbekef2641 6 лет назад

    thanks you

  • @cairoselbee5490
    @cairoselbee5490 5 лет назад +1

    if you are using an old versoin of gamemaker:
    step event: drag code:
    if !place_meeting(x+4,y,obj_wall) && keyboard_check(vk_right) {
    sprite_index = spr_heroRight;
    x+= spd
    image_speed = 0.25;
    }
    if !place_meeting(x-4,y,obj_wall) && keyboard_check(vk_left) {
    x-= spd
    sprite_index = spr_heroLeft;
    image_speed = 0.25;
    }
    if !place_meeting(x,y+4,obj_wall) && keyboard_check(vk_down) {
    y+= spd
    sprite_index = spr_heroDown;
    image_speed = 0.25;
    }
    if !place_meeting(x,y-4,obj_wall) && keyboard_check(vk_up) {
    y-= spd
    sprite_index = spr_heroUp;
    image_speed = 0.25;
    }
    and for key releases(left right up down)
    image_index = 0;
    image_speed = 0;

  • @shaymichaeli5904
    @shaymichaeli5904 6 лет назад

    in this video:ruclips.net/video/nmRH7CbJljc/видео.html you used key up an in the correct video u didnt. wtf

    • @EricGallery
      @EricGallery  6 лет назад +1

      In the first example I used Key Up to get him to stop as soon as I released the key. In the maze tutorial, I don't necessarily want him to stop when I release the key. I want him to be aligned to the grid as well. So, it is programmed that when you stop pressing the key, he will continue to walk until he lines up with the grid. Let me know if that helps.