Zagran-tour - Cập nhật bản tin du lịch xu hướng mới nhất hiện nay
  • Home
  • Du Lịch
  • Công Nghệ
  • Ẩm Thực
No Result
View All Result
  • Home
  • Du Lịch
  • Công Nghệ
  • Ẩm Thực
No Result
View All Result
Zagran-tour - Cập nhật bản tin du lịch xu hướng mới nhất hiện nay
No Result
View All Result

GameMaker: State Machine Tutorial

admin by admin
July 9, 2020
in Game
26
GameMaker: State Machine Tutorial



Artificial Intelligence (AI), Player & Object States, and much much more! A very important concept to learn! How to use Finite State Machines to code games in GameMaker.

Find these videos useful? Consider supporting on Patreon:

I believe in accessible education, this video’s content and any included GameMaker source files are and always will be free for anyone to use in their projects, commercial or otherwise. No credit or consent is needed to use this code in your own work, I merely ask that the video and/or source files themselves are not redistributed as they are without my consent.

Nguồn: https://zagran-tour.com/

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

Xem thêm Bài Viết:

  • Kinh doanh game bắn cá 2020 cần lưu ý những điều gì?
  • Game xóc đĩa mạng Lasvegassun hot năm 2020 tỷ lệ đặt cược cao
  • FFXV Director Hajime Tabata's New Project Revealed
  • Aliens VS Predator 2 : Primal Hunt | PREDALIEN CHESTBURSTER (Predalien Campaign Part 1)
  • Play it Right – Tiny Ninjas | Cardboard Rhino
Previous Post

Cách đổi ngày sinh trên Facebook nhiều lần không bị giới hạn | Đổi ngày tháng năm sinh facebook

Next Post

Cách thêm chữ ký trong outlook 2013

Next Post
Cách thêm chữ ký trong outlook 2013

Cách thêm chữ ký trong outlook 2013

Comments 26

  1. X!-NightHawk Videos-!X says:
    1 year ago

    Oh my goodness Shaun you mad lad! I had someone reference Enumerators and State Machines to me in a live stream, coding my Megaman X platformer, and holy crap. This simplifies and ORGANIZES my code! Thank you ever so much!

    Reply
  2. magnusm4 says:
    1 year ago

    This isn't as good of a GameMaker tutorial as it is a great coding tutorial in general for anything.
    I didn't know about enums and had nightmares of making a stupid system of numbered string names in a list for climbing or stunned and either having to check if number in list is "climbing".
    Now I can finally find a great way to organize my states as well as get a use for switches, never had any use for them.
    Thought i'd have to make a stupid struct of bools and having to turn on one and turning off the rest every time I switched to one -_- ugh what a nightmare that would've been.
    Now I can simply set if i'm not guarding and the force is strong enough, then simply set my state to stunned or knockedAway.

    Reply
  3. Dankangelo says:
    1 year ago

    Thank you so SO much for this tutorial !!

    Reply
  4. المبدع لعالم الحاسوب says:
    1 year ago

    What the language programing used??

    Reply
  5. glaysonmestre says:
    1 year ago

    how do I make an object jump with animations on a finite state machine ?

    Reply
  6. iiiDartsiii says:
    1 year ago

    so if you were to add an enemy state machine you'd add it under the code for enum state? like enum enemystate for example?

    Reply
  7. Dezzick says:
    1 year ago

    5 years later and still immensely helpful. Thank you. I had hit a bump using "if then" statements realizing i couldn't get much further, but this is exactly what I needed! Finite state machines will definitely help me move forward.

    Reply
  8. Guy Incognito says:
    1 year ago

    Thank you! This started off as a long winded and unfocused description, but turned into a very helpful and clarifying explanation! Thank you!

    Reply
  9. Undead Nightorc says:
    1 year ago

    Interesting, instead of enums I have been using macros (standing=0, running=1, ladder=2, etc). I'd have some global variable hold the current state (example: player_state=running). This method has worked perfectly for me for years but I feel kind of weird because everyone else uses enums when it comes to finite states. Is there something about enums that make them superior to the macro feature in GM?

    Reply
  10. xic777 says:
    1 year ago

    this fucking sucks man

    Reply
  11. Ultimatex45 says:
    1 year ago

    Great, now i have to re-code my script..
    Btw thanks

    Reply
  12. xic777 says:
    1 year ago

    can you PLEASE redo this tutorial for beginners cuz i can't seem to follow it , been watching this multiple times

    Reply
  13. Zachariah Renken says:
    1 year ago

    Lol I watched this way later than I should have. My player step event code is a mess, now I know how to clean it up. Thank you!

    Reply
  14. e3102bete says:
    1 year ago

    I’m here watching this 4 years later and it has been a HUGE help. THANK YOU!

    Reply
  15. Devid Derbishev says:
    1 year ago

    Щас я проверю что за программа вирус или нет?

    Reply
  16. Matt says:
    1 year ago

    Are enums "global"? I cannot for the life of me seem to be able to change the value unless it's in the player's event. If I put state = states.weapon; in any other event it doesn't change it. What am I doing wrong?

    Reply
  17. Obinna Emelumadu says:
    1 year ago

    Not sure this has been said, but whats wrong with just using strings?

    Reply
  18. Andy Weller says:
    1 year ago

    your while loops are broken. i have seen much better from you.

    Reply
  19. King IntheNorth says:
    1 year ago

    Does anyone know what the cut off part in the collideandmove script is? his video doesnt show the whole code and i cant seem to find the files or anything anywhere on it. My character gets stuck in floors after i jump and i followed his code all the way to this spot but i cant seem to fix this problem

    Reply
  20. TheDuckGenie1020 says:
    1 year ago

    My game keeps saying that in "switch (state)" that state is not a known variable

    How do I fix this?

    Reply
  21. TobyTheTissue says:
    1 year ago

    Thank you.

    Reply
  22. ChimeraBlitz007 says:
    1 year ago

    Wow this useful, I put so much if statements in my games. I will keep this in mind when I am developing games in the future.

    Reply
  23. powertortoise says:
    1 year ago

    I cant figure out the bit of code missing off the edge of screen.

    Reply
  24. Marco Pallottini says:
    1 year ago

    Oh my god! Thanks! 😀

    Reply
  25. Retro says:
    1 year ago

    I'd do

    state = (a macro)

    Reply
  26. Gussys Video Game Videos says:
    1 year ago

    man, im a beginner and i literally thought about this earlier in shantae while i was talking to an npc and thinking how complicated it must be for every single scenerio! but you literally just made me feel so much better about it. didnt think id get it but its almost like how can you not. super pumped. love the vids. im seriously only concerned about why your gamemaker studio looks different then mine when in earlier vids you had the same setup

    Reply

Leave a Reply Cancel reply

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

Xem Thêm

Du lịch Phú Quốc – 3 ngày 2 đêm ở Vinpearl

Du lịch Phú Quốc – 3 ngày 2 đêm ở Vinpearl

July 9, 2021
MUA VÉ MÁY BAY GIÁ RẺ: NÊN CHỌN JETSTAR PACIFIC HAY VIETJET AIR??? | VIETNAMBOOKING.COM

MUA VÉ MÁY BAY GIÁ RẺ: NÊN CHỌN JETSTAR PACIFIC HAY VIETJET AIR??? | VIETNAMBOOKING.COM

July 9, 2021
Giới Thiệu Tour Du Lịch Huế – Hòa Bình Tourist

Giới Thiệu Tour Du Lịch Huế – Hòa Bình Tourist

July 9, 2021
Vingroup xây dựng công viên chủ đề 1 tỷ usd tại Hải Phòng

Vingroup xây dựng công viên chủ đề 1 tỷ usd tại Hải Phòng

July 9, 2021
Logo công ty du lịch tại Hà Nội và TP HCM

Logo công ty du lịch tại Hà Nội và TP HCM

July 9, 2021
Điểm Đến Ngày Nay | Công ty cổ phần Du LỊch Hội An #23

Điểm Đến Ngày Nay | Công ty cổ phần Du LỊch Hội An #23

July 9, 2021
  • Liên Hệ
  • Chính Sách Bảo Mật

© 2021 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Du Lịch
  • Công Nghệ
  • Ẩm Thực

© 2021 JNews - Premium WordPress news & magazine theme by Jegtheme.