🔴Game Maker Studio 2 | Basics - GUI & HUD - Essentail GMS knowledge
Вставка
- Опубліковано 27 вер 2024
- This video tutorial explains the difference between gui and hud aswel the fundamental importance to every video game.
//surfaces tutorial:
• 🔴Game Maker Studio 2 |...
▶ Gamemaker Studio: www.yoyogames....
▶ Trial limitations: help.yoyogames...
🎮 My free game Clunky souls:
1up-indie2.itc...
💓 My assets:
Get some assets at itch.io 1up-indie2.itc...
👑 Support me and get fresh game art and game maker projects every month:
/ 1upindie
Follow me on:
📸 Instangram: / 1upindie
🐦 Twitter: / 1upindie
💬 Discord: / discord
📜 Udemy: www.udemy.com/... (See youtube about page for max discount) - Ігри
PLEASE do a tutorial on this :(
I need to understand the code
I did, look/google for camera videos. I did 2. ua-cam.com/video/a9scW0i3tYw/v-deo.html, ua-cam.com/video/9SqqelZxSxs/v-deo.html
And the camera object/project (mine) is free.
Kind of random, but I"m having an issue with using the gesture functions, DrawGUI, and a viewport all at the same time. It is preventing me from clicking on the object in GUI-space, only reading clicks on the layer and position it would be placed on. I can manually read clicks (not using built-in events) fine, and they work fine without a viewport. Are these just incompatible tools?
Hm, I cannot really answer your question. Gesture, draw events and viewports are three seperate things in gamemaker which can be checked/changed. Why should they be incompatible at all? I never had issues in that regard.
@@1upIndie They all work fine in pairs, but the combination of all three fails. I simply had to write my own draw_gui equivalent function and run it in the draw step. The gesture commands appear to be incompatible otherwise, they must only read position on the layer x,y and not the GUI x,y.
Hello, if I add a cursor to my game the GUI simply covers it. Is there a way to fix this?
Not sure what you mean. Is your cursor based on your mouse (default setting)? Or are you having an instance that is like a cursor (follows the mouse x,y coordinates). In the second case you can use instead of the regular draw event, the draw_end which should work (it is after draw, draw_gui).
Was that helpful?
manual.yoyogames.com/The_Asset_Editors/Object_Properties/Event_Order.htm
It worked!!! Thank you very much
how can I make the gui just select the button instead of tapping it?
That you need to do with code, so you tap /click on it and set a variable that say active/selected = true, and all other buttons to false. That what you are looking for?
great work. looking forward to future tutorials on this!
Hello, I have a question about game maker
I would like to know if it is possible to make an interface / window system that displays long texts and images, and that contains a scroll bar to be able to show the entire text.
As if it were a website, for example from wikipedia (besides being something that would also resemble the text document system of Resident Evil and Silent Hill). However, it wouldn't run in a specific room, it would actually be a window that appears during the game when the player presses a button.
I would also like to know if it is possible to create a notepad system too, something very simple that the player can annotate a text and that will be saved for him to check later
And lastly, is it possible to create a music player? a GUI that allows the player to choose songs and has play, restart and etc buttons.
If possible, can you give me a reference for me to search for please? and another question, is this kind of functionality too advanced for a beginner or unstable for the game maker to run? (The idea of the game involves a lot of reading texts and taking notes)
Well, yes you can do all these things in GameMaker. But, what you are refering to are programs rather then games. Not sure this what you are looking for. GameMaker is made most for 2d games that are fast and easy to produce. The engine is very flexible, but you have to do most of the things by yourself. GUIs are a very complex thing here, which other programms like unity/Godot do easier because you don't have to care about all the details (camera setup, zooming, buttons). The other ones have inbuild gui systems, GameMaker has none of that. You litterary have to create buttons/windows from scratch.
1. "I would like to know if it is possible to make an interface / window system that displays long texts and images, and that contains a scroll bar to be able to show the entire text."
- Yes, you would have to invent your own window system (seperate objects that draw stuff and overlap).
2. "As if it were a website, for example from wikipedia (besides being something that would also resemble the text document system of Resident Evil and Silent Hill). However, it wouldn't run in a specific room, it would actually be a window that appears during the game when the player presses a button."
- Yes, you would have to invent your own window system again plus create a button object/clickable area (seperate objects that draw stuff and overlap).
3. "I would also like to know if it is possible to create a notepad system too, something very simple that the player can annotate a text and that will be saved for him to check later"
Yes, it is possible but you would need to make your own system of saving inputs and saving these(plus loading on demand). The loading part is the easiest here.
4. "And lastly, is it possible to create a music player? a GUI that allows the player to choose songs and has play, restart and etc buttons."
- Yes, but you would have to load/import these in GameMaker and well, simply play them. To actually grab these from your PCs filesystem is normally not possible but you can break GameMaker and allow that too, but that is for very very experienced programmers.
So if you are a beginner, than this will be not easy to do, even on other engines also. GUIs are a complex and boring but necessary procedure which I wouldn't recommend for beginners at all. So if you are still willing to go the hard road (in GameMaker), you need to check out -> camera setup, input (strings/real/font), draw/draw gui, audio (audio group, pitch). I basically cover all these things on my videos but check out other YT creators and see who does tech you the stuff best.
Man, I really appreciate you taking the time to answer. Thanks!
Yes, they would be "programs" but they would be inside a game. However, the application of these codes is apparently much more than what I can do today. I had imagined that GUIs were simple things to do lol.
But just to confirm, if I made these same systems on Unity, would it be more advantageous, in the sense of being more intuitive or faster?
nice photoshop tutorial
Thx, I guess. Even though, photoshop/adobe is not a big friend of mine any more. Affinity all the way!
I love it!!
bro you gave NO essential anything how am I supposed to do it if idk how
Here is a practical video on that topic (the one here is just to give you an rough understanding without much coding). ua-cam.com/video/0voNEu-67QE/v-deo.html
Hey man, great video! Just gotta ask, what is that game you were playing at the beginning, 0:10.
Ah this is one metroidvana game I am working on (for now on ice for smaller projects).
@@1upIndie oh, it looks really nice. I hope you finish it one day!
@@JaJaBi Me too, its a passion project, so it will come out, question is only when...
bro my gui goes offs teen when I go in fullscreen
Eh, not sure how I can help you...
These are all fantastic! Thanks for sharing your knowledge. Keep up the great work!
Thanks a lot!
But then, how do you interact with the elements?
You sadly have to create your own gui structures. Is this a pain then ..., yes. GameMaker. There are two ways, one for mouse and the other is keyboard/gamepad input. I did a small video on mouse interaction here: ua-cam.com/video/zjyiUD1vM1w/v-deo.html