- 18
- 30 686
Holden
Приєднався 5 жов 2011
A game dev dude talking about game dev stuff.
GameMaker Functions - Pass By Reference
Explaining how function arguments work in GameMaker, by passing a value or a reference. This can be confusing and lead to bugs that are hard to troubleshoot, so stay diligent about which data types you are working with.
Переглядів: 171
Відео
Drag and Drop Game Objects
Переглядів 2454 місяці тому
So many games have a drag-and-drop ability, either through the menu or standard gameplay. These are games like Stacklands, Cultist Simulator, and Dredge's inventory system. In this video, we are looking at how to implement drag and drop with a single card. How would you go about it yourself? We'll talk about theoretically how it works, the underlying data we're dealing with, some pseudocode, an...
I Made Vampire Survivors With JavaScript (Vanilla)
Переглядів 7209 місяців тому
Disco Survivors Download the code: github.com/holdenrehg/disco-survivors I remade the 2022 game of the year (and we all know it was the true game of the year) Vampire Survivors using only vanilla JavaScript. No game engine. No libraries. Just pure JS and HTML. I of course had to put a spin on it with a disco theme. Despite this being my first adventure into JavaScript game development, I someho...
Tower Defense Tutorial: Add Enemy Movement
Переглядів 46410 місяців тому
A series on building a cozy, isometric tower defense game with GameMaker. This is Part 4 and is about getting enemy spawning/movement functional. Once we have some baddies chasing toward our castle looking to knock it down, we'll implement a basic enemy attack and castle health. This is the foundation for completing a full game loop in our next video. Source code: github.com/holdenrehg/cozy-def...
I Teach You! To Make An Inventory In GameMaker
Переглядів 1,2 тис.10 місяців тому
This GameMaker tutorial is about building an inventory system from scratch. We will start with an existing GameMaker project and extend it. There are plenty of ways to make an inventory for your game and there is no one right way. I like to approach these small projects without too much of a plan. Iteratively solve one problem at a time and refactor as you go. Give it a go for yourself! Startin...
What I Wish I Knew About GameMaker Variables Earlier...
Переглядів 774Рік тому
This is a run-through of all the essential GameMaker / GML data types that you need to know. 00:00 Intro 00:14 Numbers 05:47 Strings 06:53 Booleans 10:03 Arrays 12:20 Structs 15:52 Constructors 18:14 Functions 21:10 Enums 22:12 Binary/Hex Literals 22:40 Pointers 23:50 Undefined/NaN/Infinity 26:40 That's It #gamedev #programming #gamemaker
A Brief Intro To GML (Game Maker Language)
Переглядів 3,9 тис.Рік тому
What is this programming language called GML? Game Maker Language is a proprietary programming language just for making games within the GameMaker game engine. If you are an absolute beginner or are looking for a tool for prototyping or game jams then GML could be a great place to start. References gamemaker.io/ manual.yoyogames.com/ #gamedev #programming #coding #gamemaker #indiedev
Coding My First Dialogue System
Переглядів 2,2 тис.Рік тому
Programming a Celeste-style dialogue system for the first time. References gamemaker.io/ Chapters 00:00 Intro 01:09 Setting Up 01:44 Dialogue Prompt 08:35 Dialogue Boxes 10:28 Outro Credits Treasure Hunters by Pixel Frog: pixelfrog-assets.itch.io/treasure-hunters #gamedev #programming #coding #gamemaker
Passing Vars Between GameMaker Objects (3 Strategies)
Переглядів 2,6 тис.Рік тому
It can be confusing for beginner game developers to figure out how to share or pass data between game objects in GameMaker. Sometimes you are just looking for a simple way for one object instance to reference another object instance. This could be for a HealthBar instance to get the hitpoints variable from the Player instance for example. This walks through 3 approaches ranging from simple to c...
A GameMaker Tutorial For Complete Beginners
Переглядів 2,6 тис.2 роки тому
How do you make a game with no experience? Learning how to get started with game development is hard. The massive amount of resources out there for beginners helps with learning but makes it even harder to figure out where to begin. I wanted to share a simple-stupid tutorial for someone who has never written a line of code in their life. This will walk you through making a complete game using t...
Tower Defense Tutorial: Placing Towers
Переглядів 1,1 тис.2 роки тому
A series on building a cozy, isometric tower defense game with GameMaker. This is Part 3 and is about adding basic UI interactions with our tile grid to allow for placing towers. This involves creating a fragment shader for "highlighting" certain tiles. See part 2: ua-cam.com/video/IvOUU5cWY6Q/v-deo.html 00:00 Intro 00:58 Tile & Mouse collision checking. 05:46 Updating the Tile collision mask. ...
ASMR Programming - Making Snake - No Talking
Переглядів 2362 роки тому
Coding a snake game from scratch in GameMaker without any planning and little editing. Includes mistakes and all.
Tower Defense Tutorial: Cameras!
Переглядів 7472 роки тому
A series on building a cozy, isometric tower defense game with GameMaker. Part 2 is about the GameMaker camera features. See part 1: ua-cam.com/video/eop7PNHQgoI/v-deo.html 00:00 What shall we build? 00:37 DisplayManager object setup. 01:12 What is a camera or view? 03:18 Make the mouse drag the camera! 06:47 Pretty things up. 07:36 Make our code better. 09:16 A NEW way to set default zoom. 10:...
Learn To Build A Tower Defense Game
Переглядів 3,6 тис.2 роки тому
A series on building a cozy, isometric tower defense game with GameMaker. Follow along! This is Part 1. Go see part 2: ua-cam.com/video/IvOUU5cWY6Q/v-deo.html Credit to artyom-zagorskiy for assets: artyom-zagorskiy.itch.io/isometric-medieval-pack artyom-zagorskiy.itch.io/isometric-tower-defense-pack-az Credit to Alex for the music: soundcloud.com/alexproductionsmusic/lpounge-mp3 Follow me: twit...
4 Directional Movement GameMaker Tutorial
Переглядів 7 тис.2 роки тому
4 Directional Movement GameMaker Tutorial
Explaining The Most Confusing Statement In GameMaker
Переглядів 5712 роки тому
Explaining The Most Confusing Statement In GameMaker
As far as I could see, the video does not show the functions inside load_dialog(), next_line() and has_next_line()
Hey, it'll probably be easiest to reference back to the source code as you go through the video. I've got it here: github.com/holdenrehg/pokemon-dialogue.gml/tree/main
If your reading please can you explain how to make the inventory horizontal
I'd recommend thinking about how it's drawn when it's vertical. Each inventory spot has an x,y position on the screen. Where would you need to draw them on the screen if it was horizontal? Then where would those x,y coordinates be? Then how do you actually set the coordinates for each square?
Super helpfull video👍
your channel has some really good quality content and great editing #GameMaker ps I have already subscribed you
Appreciate that!
ok?
ok?
@Holden; HI i am the inventor of the ejection seat for those hellocoptors. Can you do a video on putting the correct settings for GameMaker Studio?
This video was made really well, thank you
🙌
what's in the 'utils' script? The point and dimensions functions are undefined
ah my bad, yes the point and dimension functions are there (simple struct constructors) here's a link, you can absolutely get away without them, it's just personal preference for me gist.github.com/holdenrehg/305f1ed5bf10629edbd25dbe1a836d28
Vampire Survivors was literally made with Javascript and you can still download the JS non-Unity build.
Oh nice, didn't know that. I'll check it out.
Very helpful, thanks!
I appreciate your videos, inspires me to go back to gml every time.
Glad to hear it! GML isn't perfect, but gets the job done
Great video, thank you! When you scaled your object up to be proportionate to the necessary game window, how did you get a clear image when you run the game? Scaling the object up made my character blurry. Is there any settings I need to change that weren’t mentioned in the video?
Not any specific settings I'm aware of. Are you using the same sprite I had? Or did you make your own?
@@reedrehg I made my own sprite for this exercise. I did a bit of deep dive afterwards and saw something that recommended turning off the option “interpolate colors between pixels”. This seemed to fix the issue of blurry sprites, but still a bit confused what that means, or why it is turned on by default.
Ah alright. Here's a description gamemaker.info/en/manual/302_01_graphics Also, it looks like it getting automatically enabled may be a bug. github.com/YoYoGames/GameMaker-Bugs/issues/2343
@@reedrehgthank you so much!
Excellent exploration of this topic. Thank you for this detailed and easy to understand video 😊
🙌
Subscribed 🙏
Welcome
Well made video!
Thank you!
Please do more a lot guides are outdated and ppl aren’t interested or either don’t wanna share knowledge for free.
Any specific guides you want to see?
@@reedrehg😮 wasn’t expecting so fast reply, ok here I go, how to interact with merchant array inventory and by able to buy sell from him, have a delete bucket. and or pick up items from within window slot, from mobs I kill like wow vanilla not just fallen items on the ground, that’s why I like arrays makes it tidy on the screen for the user. Explain the different keywords around gml needed to make inventories. The gml manual got a bunch new syntax keyword but I’m struggling to put them in use without an actual project, visually that is. To give you an example, I’m using padding but I don’t know what it is or even means I just know I need to include it or else (error). Also I did search padding but the only thing I figured out is that it’s something like filler. Another example, I know how to make my character move but I don’t know what I’m doing or what it means, I wanna know what my code means to the machine. Also, my char diagonally moves slow and I don’t know why 😂 frustrating Thanks for replying by the way sorry for typing such a huge comment. Wanted to give ideas because I feel the community of game maker is thirsty while I see goody that’s new have a bunch new posts everyday with tons of comments and all from 2024 all projects actually working while game maker doesn’t accept projects from older versions, I’m saying this because I imported a lot projects from text tutorials and sprites or objects are missing :/
@@reedrehgoh and which event is for which personally I used to use the create event for everything and didn’t know I need to put certain things in certain places 😂 P.S: Another example, in game maker I see in orange (real) I wonder what it is.
@@reedrehgmy internet died and the original post wasn’t actually posted. For guides, personally I wanna learn how to make inventories with arrays for almost about everything. Merchants, player bag, weapon active slots, monster loot window, quest window loot box (pick reward). How to swap main sword with axe like I do in Skyrim with modded mouse macro. I learned how to move my character from Peyton Burnham But my char moves rly slow in certain directions, when I go and press top right keys in order to move top left right or bottom left right (diagonally) and idk why nor I know if there is a more efficient way to type the code otherwise. Also, a lot video or text-follow tutorials that offer the project to practice with are so old game maker does not import them properly. Only someone that learned C in depth possibly could figure some things out but for the rest of us really code amateurs we have to pick bit by bit each bread crumb we find. 😕
@@trifilosgr ah okay, I did one inventory video but could probably do some more in depth ones Equipment and wearable items is on my list. I've been thinking about a simple Gunegon style weapon system for a tutorial. That may help you when I get to it. For movement from Peyton, what type of game? Is it a platformer? Or more top-down Zelda style?
Epic video but the link to the code doesn’t work
The link in the pinned comment works. github.com/holdenrehg/pokemon-dialogue.gml/tree/short
@@reedrehg thank you! For some reason it only works when I open it from my comment notifications
We'll only issue I seem to have is my left and right animation. They have 4 animations while idling, up and down only have 2 so they are working fine. Does anyone know how to make the bound function work for variable animations?
Your tutorials are so easy to understand.
Thank you!
Really wish you could expand on the 3rd option.
Maybe in a future video. Any questions I can answer?
for some reason when I follow the steps around the 22 minute mark, the game crashes with a code error saying: ___________________________________________ ############################################################################################ ERROR in action number 1 of Step Event0 for object obj_road: Variable <unknown_object>.instant_furthest(100003, -2147483648) not set before reading it. at gml_Object_obj_road_Step_0 (line 7) - var last_road = instant_furthest(x, y, obj_road); ############################################################################################ gml_Object_obj_road_Step_0 (line 7) and I just wasn't able to make it work
Looks to be a typo @Wjshintx the function name should be "instance_furthest". In the error, it's showing that you are trying to call "instant_furthest".
@@reedrehg wow, now I feel dumb. Thanks.
😂 eh don't worry about it, it happens, carefully read through error messages next time and you'll catch the problem quicker
@@reedrehg I was literally reading through the error message for almost an hour, and I kept on comparing my code to the video, thanks though, now it works
@@reedrehg also, the funny thing was that it was showing an error code for everything else BUT that (at least to my beginner coding mind)
Great video dude! I loved it
✌️
Gem of a video!
Excellent video
You deserve way more popularity
Appreciate it ✌️
Thanks for the tutorial! Quick question: when my trees spawn they spawn at the original tiny size of the sprite instead of matching the size of the player and road that were scaled up. Any ideas how to fix this?
I watched your video then I saw the game you made on the Nintendo eshop!
I didn't make any games on the eshop :)
@@reedrehg oh. I saw a game on there using these exact sprites. I’m guessing you used them as an example?
ahh yes, it's a free asset pack, take a look at the video description and there's a link to it
22:40 omg i thought gml doesn’t have pointer
I would say it still doesn't have a real pointer, or at least a useful pointer the way you think of pointers from other languages. It's really only useful in very niche situations. But GML does have references. So for example if you pass a struct into a function, it passes by reference. Important to know how that works since you can easily create bugs that are wildly difficult to debug.
Using "and" and "not" instead of "&&" and "!" (I changed it just to be on the safe side 😁 ) how ok is that later on if one for example want to port to various platforms?
Good point, I'm not aware of any issues with "and" "or" "not" when it comes to exports. GameMaker docs don't explicitly mention anything. Sticking with &&, ||, ! is probably the safest. Worst case I'll just have some find and replace work to do :D
@@reedrehg I searched the GM manual but it gave me no results but you are saying it does mention these? Will have a search again. 👍😊
Thank you for taking the time making and sharing tutorials. Is using a GUI for the inventory efficient also for big games and many rooms?
In general yes, should be fine. How big of a game are you thinking?
@@reedrehg Inventory has 12 slots size 116 x 90. Screen size 1280 x 768, 54 rooms. Estimated items (there may be more added in updates) that can be used in inventory, about 100, I would prefer not to have an object for each item but create instances of an inventory object. It will be a PC game to start but I am programming it so it can be played on Android device too.
You won't have any problems with that. Watch how you're managing instances as you switch rooms, make sure you aren't unnecessarily creating a bunch of instances without destroying them/cleaning up. Depending on how complicated your objects are, there should be no major performance issues even if there were thousands of instances on screen at a time.
@@reedrehg Thank you! Good to know. None of the objects are overly complicated so it should all be good.
Looking forward to the next episode!
Its so hard to find a vamilla javascript 2d game tutorial thats good, and this is exactly what i was looking for! A remake of Vampire Survivors. I hope you make more javascript games.
We will see! It was a fun project idea, but I'm not sure how much more I'll build using only vanilla JS.
@@reedrehg make more JS game dev videos with libraries. This is a good niche and I'll stick around watching.
it doesnt let me drag and drop the grass sprite in?
EDIT : i got it working If anyone else has this problem you just need to copy the files into a new folder and import them from there
Thanks for the info dude
No problem ✌️
Thanks Holden, very helpful for me to get a more advanced overview of how to do some things in GameMaker! Can't wait of the next episode (if you have time and drive).
Hey! There are a couple more episodes coming.
@@reedrehg That sounds great!
Very cool, thanks! But I got stuck for a moment when it came to moving the camera. Then I found out that I first had to activate "Enable Viewports" and "Viewport 0" > "Visible" in the room for it to work.
Thanks Holden, learned a lot! Only typing this 0 / 1 struct wasn't so funny 😁
😁 ya...you can always reference the repo if that's helpful / easier. github.com/holdenrehg/cozy-defense.gml
@@reedrehg Yes, thanks, I didn't realise that :-)
Uff, I didn't know this, thought it would be similar to the "with" I remember from Object Pascal (Delphi), but it can do much more
This one confused me when I started too! I worked for many years using Python so assumed it was similar.
Very helpful, thanks for this explanations, especially the rounding was new and is a bit confusing for me, also dividing to zero! PS: Was surprised to see the old German name "Hans", that was my grandfather's name. But then I saw that you probably meant "Han Solo" from Star Wars instead... 🙂
Maybe I meant the old German space rebel Hans Solo 😂
A great explanation, very helpful, thanks!
Great stuff !
please keep doing game maker tuts, not many people doing them anymore so its refreshing to see new tut vids in gml :D
Yo very awesome video! You will have alot of subs and views soon!!!
bro can you upload image files? awesome
make javascript game more bro! exting and great!!
Check out the description! Updated the link. Nice catch, thanks.
later gonna learn game maker. tower defense looks interesting with great design@@reedrehg
You’re an excellent teacher. Let me just say, I wasn’t able to find a video where it explained the details and differences between the Rooms, Sprites and Objects and what they did in detail. The way you explained the relation between them and how to apply them with understanding, made things come together with these few basic steps. I understand that even when learning code and adding nodes, it’s important to know how everything plays out within the Assets Browser and Inspector since these are these are important tools. When you’re learning how to make a game for the first time, these things are crucial regardless if your learning code or not, because eventually, you’ll face the challenges of coding anyways and that’s another whole subject within itself. Steps are great for first timers but understanding the fundamentals is what’s going to make you and hopefully not break you. Will you have more videos? Thank you
Wow, thanks! More videos are on the way.
I'm liking this series!
Thanks! Not sure if it'll become a series 🤔 but if you've got ideas or want to see something specific then let me know.
This might be too specific, but I got an idea. The player making a footstep sound every time there is a frame in which the character is touching the floor. I don't really know if its easy to make but it would be cool to see it in practice!@@reedrehg
Ahh good idea. I haven't made anything about sound effects at all.
These tutorials are helping me make my game, can you teach how to do a rpg turn based combat?
No promises, but something I've considered because I love some old school jrpg's.
@@reedrehg thanks for Reading my suggestion
Yeah, that would be Very helpfull, i am making a game inspired by undertale and i am neding this
Undertale seems to be a special case with how unique its combat is. But I may make something more like the original final fantasy's or pokemon.
@@reedrehg yeah, i am tring to do my own turn based combat for my game, like undertale did.