• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!


  1. NTiger7

    GMS 2.3+ Advice on Reusing Code for an Item Shop

    IDE v., runtime v. So I successfully have made an shop where the player can purchase items from and it will be added to their inventory, but I would like to use the same code for all the other shops so it doesn't use up more memory. The only thing I would have to change is...
  2. X

    Legacy GM String index nonsense

    I found out the reason some of my code wasn't working as expected because of string indexes starting at 1 and this hasn't been changed due to some legacy crap with Delphi🤦‍♂️ Good god YoYo Games get into the 21st century We shouldn't have 0 index for most things and then this oddity where you...
  3. K

    array_length always returning 0

    Hi everyone, I'm really confused right now and for sure this is a super noob question. I'm playing around wiht Game Maker after several years and I'm facing an issue that I can not explain myself. In my Create event I declared an array like this: myArray = ["Test","Test","Test","Test" ]; then...
  4. E

    Gamemaker Local Variables

    I have this code where I want an instance to be created as long as the circumstances are met. This is the code: if(hAmount < hMax){ var spawnCounter = 0; spawnCounter += 1; if(spawnCounter >= 3*room_speed){ var sRange = irandom_range(65,80)...
  5. NTiger7

    GMS 2.3+ [SOLVED] Program fails to run after adding code to transition between rooms

    IDE version and runtime version I am currently using the trial version but will be upgrading to the desktop version soon. So I was following Shaun Spalding's tutorial on adding transitions between rooms (Part 7) when after I added the part where black bars come from the top...
  6. S

    GMS 2.3+ Game Maker 2.3 Trial version!

    Hi. I am hoping if you can tell me if it is possible to do collisions and make them work after pressing play and compiling, if you are using the trial version. Because i am following a course about Game Maker 2.3 and have copied the code exactly but it isn't working. There is no error in my...
  7. V

    Jump not working right and run speed gets progressively faster

    The controls respond but the output is not right. You can see that it tries to jump but never leaves the platform. When I run, the speed does not cap, so it gets increasingly faster. Any ways to go about this? Create Event /// @description Init Vars // Global array to store gamepad info in...
  8. V

    Warp to a location within same room

    I see a lot of tutorials about warping to other rooms, but what if you want to warp to a different spot in the same room? How would you go about that? The simple code I'm familiar with is: if room=room1{ room_goto(room1) x=1315 y=107 } As you can see, I am trying to warp to...
  9. Salsa

    Space Rocks GML tutorial - Objects are invisible in room

    Hey! I am somewhat new to coding and such so i started off by doing the space rocks tutorial. everything was going great and i was following everything step by step. But then when i needed to launch the game and see what my room looks like, i noticed that all of the objects in the room were...
  10. WanSou

    GML How To Properly Disconnect A GML Client From A Node.JS Server

    Hey, i am trying to disconnect a gml client from a node.js server but whenever i try to disconnect it by using "network_destroy()" the node.js server crashes and returns " Error: read ECONNRESET " Which from my research is because the connection was abruptly disconnected so... how do i...
  11. N

    SOLVED Sprite draw order depending on y variable?

    Hello I'm doing a top down rpg and while the characters' collisions are 16x16, the sprites are 16x24 Basically this means that characters or objects should appear layered in front of the ones above and behind the ones below at all times, but I don't know how to do that because objects seem to be...
  12. Armored Dragon

    Smooth camera zoom-out.

    Right now i'm trying to make a Spore-like mini game to pratice some things and... i'm stuck. I need a câmera system that follows the player and zoom out each time player grows up. I have this: ------------------------------------------------------------------------...
  13. samspade

    GMS 2 Updating The Coding Fundamentals in GML Series to 2.3!

    I'm starting my update for Coding Fundamentals in GML. If anyone has feedback on what needs to be updated, feel free to let me know! Whether your like helping or just have videos you want me to make thanks in advance. I'm noting three types of videos. 1) Videos that expand upon a previous...
  14. DarthTenebris

    GMS 2.3+ Struct

    Hello everybody, I recently got to try out the new features, and the new structs made me think a bit. I have a script called EngineUI, which I intend to house all the GUI elements I'm going to make programatically. Previously, I made an object for every button I added. With the new structs, I...
  15. xDGameStudios

    GMS 2.3+ Sequences that partially loop themselves

    Hi everybody! I have a question: "is there a clean elegant way to make a sequence partially loop itself?" What do I mean by that?! Take the above image as an example. I have a timeline that will make a sprite move the Broadcast Message "loop" is where the loop should start. In other words...
  16. netoxinaa

    SOLVED Struct not set before reading it

    Hello, I'm new to structs and I came up with this idea of using them for every Menu I have in my game, so each struct menu handles his own variables, text, keys, positioning, etc. In a create event I declared 2 structs, itemMenu and itemOptionMenu. Both of them have almost the same variables...
  17. W

    Destroying a specific instance

    Back for more help. I'm trying to destroy a specific instance, here's the info; There could be many instances of an object. I want to click on one of the objects to bring up a menu. If you click on a destroy button on that menu, you would destroy the instance of the object that was...
  18. B

    GMS 2.3+ Weird Sprite Spawns

    Random Sprites Spawn during my game like those gradients and the main character space ships i have no clue how to fix this, Evan when searched the sprites are used in any code, just background use only.
  19. B

    GML Resetting Score

    When my game sends you back to start menu the score stays the same flying thought levels. What command do i reset it with?
  20. Papa Doge

    SOLVED Simple light effect

    I'm attempting to add a simple light effect to my game where certain objects have a light radius around them when the world is dark. I have the surface drawing correctly with the dark overlay but my light punch outs don't seem to be working. I've create an object called obj_lighting_render to...