Holden
Holden
  • 18
  • 30 686
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

КОМЕНТАРІ

  • @arteji4737
    @arteji4737 11 днів тому

    As far as I could see, the video does not show the functions inside load_dialog(), next_line() and has_next_line()

    • @reedrehg
      @reedrehg 11 днів тому

      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

  • @OtivereObazenu
    @OtivereObazenu 24 дні тому

    If your reading please can you explain how to make the inventory horizontal

    • @reedrehg
      @reedrehg 24 дні тому

      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?

  • @Giantenemyspider02
    @Giantenemyspider02 Місяць тому

    Super helpfull video👍

  • @ajinkyax
    @ajinkyax Місяць тому

    your channel has some really good quality content and great editing #GameMaker ps I have already subscribed you

    • @reedrehg
      @reedrehg Місяць тому

      Appreciate that!

  • @kRVRKV
    @kRVRKV 2 місяці тому

    ok?

  • @fredambrose
    @fredambrose 3 місяці тому

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

  • @wolfwolf494
    @wolfwolf494 3 місяці тому

    This video was made really well, thank you

  • @Zirneks
    @Zirneks 3 місяці тому

    what's in the 'utils' script? The point and dimensions functions are undefined

    • @reedrehg
      @reedrehg 3 місяці тому

      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

  • @bradyfractal6653
    @bradyfractal6653 3 місяці тому

    Vampire Survivors was literally made with Javascript and you can still download the JS non-Unity build.

    • @reedrehg
      @reedrehg 3 місяці тому

      Oh nice, didn't know that. I'll check it out.

  • @jugibur2117
    @jugibur2117 4 місяці тому

    Very helpful, thanks!

  • @Adorable_Text
    @Adorable_Text 4 місяці тому

    I appreciate your videos, inspires me to go back to gml every time.

    • @reedrehg
      @reedrehg 4 місяці тому

      Glad to hear it! GML isn't perfect, but gets the job done

  • @stxballerx16
    @stxballerx16 4 місяці тому

    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?

    • @reedrehg
      @reedrehg 4 місяці тому

      Not any specific settings I'm aware of. Are you using the same sprite I had? Or did you make your own?

    • @stxballerx16
      @stxballerx16 4 місяці тому

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

    • @reedrehg
      @reedrehg 4 місяці тому

      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

    • @stxballerx16
      @stxballerx16 4 місяці тому

      @@reedrehgthank you so much!

  • @NR-fx8tk
    @NR-fx8tk 4 місяці тому

    Excellent exploration of this topic. Thank you for this detailed and easy to understand video 😊

  • @ajinkyax
    @ajinkyax 4 місяці тому

    Subscribed 🙏

  • @ixsterne
    @ixsterne 4 місяці тому

    Well made video!

  • @trifilosgr
    @trifilosgr 4 місяці тому

    Please do more a lot guides are outdated and ppl aren’t interested or either don’t wanna share knowledge for free.

    • @reedrehg
      @reedrehg 4 місяці тому

      Any specific guides you want to see?

    • @trifilosgr
      @trifilosgr 4 місяці тому

      @@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 :/

    • @trifilosgr
      @trifilosgr 4 місяці тому

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

    • @trifilosgr
      @trifilosgr 4 місяці тому

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

    • @reedrehg
      @reedrehg 4 місяці тому

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

  • @chocostixyt
    @chocostixyt 4 місяці тому

    Epic video but the link to the code doesn’t work

    • @reedrehg
      @reedrehg 4 місяці тому

      The link in the pinned comment works. github.com/holdenrehg/pokemon-dialogue.gml/tree/short

    • @chocostixyt
      @chocostixyt 4 місяці тому

      @@reedrehg thank you! For some reason it only works when I open it from my comment notifications

  • @patrickhart5550
    @patrickhart5550 4 місяці тому

    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?

  • @gleefuluv
    @gleefuluv 5 місяців тому

    Your tutorials are so easy to understand.

    • @reedrehg
      @reedrehg 5 місяців тому

      Thank you!

  • @TheSpiritBolt
    @TheSpiritBolt 5 місяців тому

    Really wish you could expand on the 3rd option.

    • @reedrehg
      @reedrehg 5 місяців тому

      Maybe in a future video. Any questions I can answer?

  • @Wjshintx
    @Wjshintx 5 місяців тому

    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

    • @reedrehg
      @reedrehg 5 місяців тому

      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".

    • @Wjshintx
      @Wjshintx 5 місяців тому

      @@reedrehg wow, now I feel dumb. Thanks.

    • @reedrehg
      @reedrehg 5 місяців тому

      😂 eh don't worry about it, it happens, carefully read through error messages next time and you'll catch the problem quicker

    • @Wjshintx
      @Wjshintx 5 місяців тому

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

    • @Wjshintx
      @Wjshintx 5 місяців тому

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

  • @FindingFocus
    @FindingFocus 5 місяців тому

    Great video dude! I loved it

  • @NdyyGameDev
    @NdyyGameDev 5 місяців тому

    Gem of a video!

  • @scottrim7216
    @scottrim7216 5 місяців тому

    Excellent video

  • @ARNAW
    @ARNAW 5 місяців тому

    You deserve way more popularity

    • @reedrehg
      @reedrehg 5 місяців тому

      Appreciate it ✌️

  • @CalebIrle
    @CalebIrle 6 місяців тому

    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?

  • @NoahMcfly98
    @NoahMcfly98 6 місяців тому

    I watched your video then I saw the game you made on the Nintendo eshop!

    • @reedrehg
      @reedrehg 6 місяців тому

      I didn't make any games on the eshop :)

    • @NoahMcfly98
      @NoahMcfly98 6 місяців тому

      @@reedrehg oh. I saw a game on there using these exact sprites. I’m guessing you used them as an example?

    • @reedrehg
      @reedrehg 6 місяців тому

      ahh yes, it's a free asset pack, take a look at the video description and there's a link to it

  • @t3ww
    @t3ww 6 місяців тому

    22:40 omg i thought gml doesn’t have pointer

    • @reedrehg
      @reedrehg 6 місяців тому

      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.

  • @evaisotalo3386
    @evaisotalo3386 6 місяців тому

    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?

    • @reedrehg
      @reedrehg 6 місяців тому

      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

    • @evaisotalo3386
      @evaisotalo3386 6 місяців тому

      @@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. 👍😊

  • @evaisotalo3386
    @evaisotalo3386 6 місяців тому

    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?

    • @reedrehg
      @reedrehg 6 місяців тому

      In general yes, should be fine. How big of a game are you thinking?

    • @evaisotalo3386
      @evaisotalo3386 6 місяців тому

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

    • @reedrehg
      @reedrehg 6 місяців тому

      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.

    • @evaisotalo3386
      @evaisotalo3386 6 місяців тому

      @@reedrehg Thank you! Good to know. None of the objects are overly complicated so it should all be good.

  • @realS4T4N1CH0RS3
    @realS4T4N1CH0RS3 7 місяців тому

    Looking forward to the next episode!

  • @randith87
    @randith87 7 місяців тому

    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.

    • @reedrehg
      @reedrehg 7 місяців тому

      We will see! It was a fun project idea, but I'm not sure how much more I'll build using only vanilla JS.

    • @plamenhadzhiev
      @plamenhadzhiev 3 місяці тому

      @@reedrehg make more JS game dev videos with libraries. This is a good niche and I'll stick around watching.

  • @mrmemefrog6172
    @mrmemefrog6172 7 місяців тому

    it doesnt let me drag and drop the grass sprite in?

    • @mrmemefrog6172
      @mrmemefrog6172 7 місяців тому

      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

  • @JustBleedGames
    @JustBleedGames 7 місяців тому

    Thanks for the info dude

    • @reedrehg
      @reedrehg 7 місяців тому

      No problem ✌️

  • @jugibur2117
    @jugibur2117 8 місяців тому

    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).

    • @reedrehg
      @reedrehg 8 місяців тому

      Hey! There are a couple more episodes coming.

    • @jugibur2117
      @jugibur2117 8 місяців тому

      @@reedrehg That sounds great!

  • @jugibur2117
    @jugibur2117 8 місяців тому

    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.

  • @jugibur2117
    @jugibur2117 8 місяців тому

    Thanks Holden, learned a lot! Only typing this 0 / 1 struct wasn't so funny 😁

    • @reedrehg
      @reedrehg 8 місяців тому

      😁 ya...you can always reference the repo if that's helpful / easier. github.com/holdenrehg/cozy-defense.gml

    • @jugibur2117
      @jugibur2117 8 місяців тому

      @@reedrehg Yes, thanks, I didn't realise that :-)

  • @jugibur2117
    @jugibur2117 8 місяців тому

    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

    • @reedrehg
      @reedrehg 8 місяців тому

      This one confused me when I started too! I worked for many years using Python so assumed it was similar.

  • @jugibur2117
    @jugibur2117 8 місяців тому

    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... 🙂

    • @reedrehg
      @reedrehg 8 місяців тому

      Maybe I meant the old German space rebel Hans Solo 😂

  • @jugibur2117
    @jugibur2117 8 місяців тому

    A great explanation, very helpful, thanks!

  • @Sucundrule
    @Sucundrule 8 місяців тому

    Great stuff !

  • @aerys2190
    @aerys2190 8 місяців тому

    please keep doing game maker tuts, not many people doing them anymore so its refreshing to see new tut vids in gml :D

  • @fifafab8616
    @fifafab8616 9 місяців тому

    Yo very awesome video! You will have alot of subs and views soon!!!

  • @worldbest3097
    @worldbest3097 9 місяців тому

    bro can you upload image files? awesome

    • @worldbest3097
      @worldbest3097 9 місяців тому

      make javascript game more bro! exting and great!!

    • @reedrehg
      @reedrehg 9 місяців тому

      Check out the description! Updated the link. Nice catch, thanks.

    • @worldbest3097
      @worldbest3097 9 місяців тому

      later gonna learn game maker. tower defense looks interesting with great design@@reedrehg

  • @8bombart
    @8bombart 9 місяців тому

    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

    • @reedrehg
      @reedrehg 9 місяців тому

      Wow, thanks! More videos are on the way.

  • @loko2pontos
    @loko2pontos 10 місяців тому

    I'm liking this series!

    • @reedrehg
      @reedrehg 10 місяців тому

      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.

    • @loko2pontos
      @loko2pontos 10 місяців тому

      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

    • @reedrehg
      @reedrehg 10 місяців тому

      Ahh good idea. I haven't made anything about sound effects at all.

  • @gatodripado9537
    @gatodripado9537 10 місяців тому

    These tutorials are helping me make my game, can you teach how to do a rpg turn based combat?

    • @reedrehg
      @reedrehg 10 місяців тому

      No promises, but something I've considered because I love some old school jrpg's.

    • @gatodripado9537
      @gatodripado9537 10 місяців тому

      @@reedrehg thanks for Reading my suggestion

    • @relucky
      @relucky 10 місяців тому

      Yeah, that would be Very helpfull, i am making a game inspired by undertale and i am neding this

    • @reedrehg
      @reedrehg 10 місяців тому

      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.

    • @relucky
      @relucky 10 місяців тому

      @@reedrehg yeah, i am tring to do my own turn based combat for my game, like undertale did.