GameMaker Studio 2 Tutorial - Character Movement for a Maze Game

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024
  • GameMaker Studio tutorial that shows how to keep a character aligned to a grid like in Pac-Man. Here is a link to the video on how to create sprites from an aligned spritesheet. • GameMaker Studio 2 Tut...

ความคิดเห็น • 27

  • @kalaiselwenjayabalan4924
    @kalaiselwenjayabalan4924 3 ปีที่แล้ว

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

  • @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.

  • @groovy7715
    @groovy7715 2 ปีที่แล้ว

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

  • @tcdagoat
    @tcdagoat 4 ปีที่แล้ว +1

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

  • @irwinrina11009
    @irwinrina11009 5 ปีที่แล้ว +1

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

  • @Raymond13557
    @Raymond13557 6 ปีที่แล้ว

    good job on this one buddy!

  • @pavankumardodawad7226
    @pavankumardodawad7226 4 ปีที่แล้ว

    How to switch rooms in this game plz tell me

  • @fredforshee9459
    @fredforshee9459 3 ปีที่แล้ว

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

    • @EricGallery
      @EricGallery  3 ปีที่แล้ว +1

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

    • @fredforshee9459
      @fredforshee9459 3 ปีที่แล้ว

      @@EricGallery Thank You

    • @fredforshee9459
      @fredforshee9459 3 ปีที่แล้ว

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

    • @EricGallery
      @EricGallery  3 ปีที่แล้ว +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.

  • @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

  • @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;

  • @naqashkhan3294
    @naqashkhan3294 6 ปีที่แล้ว

    where is part one??

    • @EricGallery
      @EricGallery  6 ปีที่แล้ว

      There is no part one. But here is a link to the video that shows how to make the walking sprites. th-cam.com/video/qfZxQYxLshE/w-d-xo.html

  • @naqashkhan3294
    @naqashkhan3294 6 ปีที่แล้ว

    bro can u teach me how creaet endls game

    • @EricGallery
      @EricGallery  6 ปีที่แล้ว +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

  • @shaymichaeli5904
    @shaymichaeli5904 6 ปีที่แล้ว

    in this video:th-cam.com/video/nmRH7CbJljc/w-d-xo.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.