1. TyGamess

    Picking Up and Droping a Single Object

    I’m new(ish) to GMS2 but new to the website so I’m sorry if I’m positing this in the wrong area. But I’m having some problems woth “Picking up and Droping a single item” I’m making a game where you can only carry one item at a time. So I made the code and my character will pick one up but can...
  2. S

    cant get off ladder

    hi! so I put in code to make it possible for my character to go on a ladder and go up and down, but when I get on it, I can go as high as I want even though the character isnt touching the ladder object anymore. also, i cant move left or right on the ladder, or even jump off of the ladder, so...
  3. Sabnock

    [SOLVED] Line drawing Algorithm

    Looking for a good line drawing algorithm. I want to be able to per pixel colour a line so i can animate colour along the length of the line which GML does seem to cover i have looked on line and seen a few options but wanted to get advice on what was best for quick, efficient game use...
  4. A

    GMS 2 Destroying sprites form layer

    Hi, I need to destroy sprites called sTree from my asset layer. All 10 of them. Can this be done, if so how? Thanks.
  5. rawket

    GMS 2 Help with sprite change on asset layer

    So in an object I have this code for room start if areas_coastal == "burned" { layer_sprite_change(layer_sprite_get_id("buildings", "spr_diner1"), spr_diner1Burned); } It runs but the sprite doesn't change
  6. Null-Z

    Legacy GM (Please Don't) Exit stage left. SOLVED!

    For my Boss object, I have a phase where it hovers over the player before dropping down. I want it to move back and forth around the player's X before dropping. the problem? it just float's away seemingly ignoring the conditions I set for it. What am I misunderstanding? Functioning code
  7. SendTheGravy

    Coding help

    I'm SUPER new to game maker and just need a bit of help with some coding. Let's say I have two Objects, Object A and Object B. I want to make it so when I interact with Object A, Object B's sprite changes. How would I go about doing this? Help is much appreciated :)
  8. samspade

    GML Coding Fundamentals in GML Tutorial Series

    GM Version: GMS 2.2.5 and 2.3 Target Platform: All Download: Github Repository 2.2 and Github Repository 2.3 Links: YouTube Playlist Summary: A GML tutorial series focused on the basics of coding in (unsurprisingly) GML. It is updated for 2.3 (almost). All of the videos will be posted below but...
  9. Vargas

    GMS 2 A Game With Navy Ships in It

    Introduction: So I've gone through the basic tutorial on Youtube for GMS2 before but I wanted to try something a little more ambitious this time around. Instead of making a small game where you have one objects that flies around, I'm making one where you drive a warship and use multiple turrets...
  10. DragonRod342

    Legacy GM [SOLVED!] Pathfinding stop when surrounded

    Hi everyone o/ I'm coding a top down game where enemies follow the player if they're close enough to it. I'm using this code: this works pretty fine, but when an enemy with this code is surrounded by walls and have no possible path to follow, it just disappears! My game'll have some places...
  11. A

    GML Speeding up cutscenes/gameplay event coding

    Hey guys. I'm making a game that is based on missions, during which I have to control things such as enemy behaviours, dialogues, cutscenes, ecc. Hello :) I am making a game that has alot of missions and cutscenes. The way I code them right now is by having the main mission script with a...
  12. M

    GMS 2 Help with a HnS Platformer (GM: Studio 2)

    I need help for a script: i'm starting with a test for a future HnS Platformer game (first I make a test, then I will make a game about). My character is supposed to attack both when is on the floor, and when in jumping. The problem: when I start the game, the code doesn't work correctly Here is...
  13. Dwighty4000

    GMS 2 How to run a Main Menu?

    I just see a lot of Youtube tutorials about it but in no one is it explained how to do that the main menu should be run first before the whole game does load the room and the objects in the room. So how do I do that the main menu is executed before the actual game? As soon as you want to start...
  14. S

    GML Rhythm-Based Game, Lag

    Hi! I am making a rhythm-based game, and essentially, if the game lags the music does not, so it becomes out of sync with the game and things do not happen on-beat. How do I fix this? Thank you!
  15. tagwolf

    How to plan and manage code for larger projects

    Game Development Code Planning GM Version: ANY (and not just for GameMaker, however this will be GMS2 "centric") Target Platform: ALL Download: N/A Links: N/A Summary: This tutorial will go over code and object planning for game (and application) project development to minimize re-coding and...
  16. N

    Cutting coding clutter

    Here it goes. How do you manage coding clutter, by clutter I mean lines upon lines in you character objects step event. I’d like to maybe experiment but putting some stuff in other interactable objects. What I mean is; If I wanted to interact with an object in my chars code I would put, If...
  17. W

    falling through the floor

    hey guys since am very new to Gamemakers studios am obviously going to stumble uppon some problems , since other threads and youtube seem to only take my time i will post my problem here. //get player input key_right = keyboard_check (vk_right); key_left = keyboard_check (vk_left); key_jump =...
  18. G

    Saving based on the room the player is in with Drag and Drop

    So, i've been working on making a platforming game using Drag and Drop in Gamemaker 2 Studio. I'm struggling with a save system. The sort of system i want is if the player is in a certain room, the game saves automatically. For example, once the player gets to a new world, saving it so that when...
  19. S

    GMS 2 Menu object not appearing after following a tutorial

    Hi! So I'm a beginner when it comes to GMS and coding in general. I followed a tutorial for creating menus: I followed everything to the letter with the exception of the general layout of the menus, some visual elements and controls, but I don't...
  20. D

    Windows How to make a save and load game function with json files?

    I have been working on my game for quite some time and I am working on trying to add a save and load game feature to my game. The problem is I can't ever get it to work no matter how many google searches I do or how many YouTube videos I watch. If anyone could help me to understand this so I can...