coding

  1. 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 =...
  2. 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...
  3. 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: https://www.youtube.com/watch?v=fWAhi10q1ZE& 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...
  4. 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...
  5. W

    GML Large Inventory Design

    Good Morning, So I've currently got a functioning inventory, that will be able to read from a large database of hundreds of items. However, each item could impact a number of player stats, and I'm curious if the inventory method I'm usually seeing online using data structures and enumerators is...
  6. G

    GML Basic Coding Help

    I keep getting these rectangles in my text and I have no idea how to eliminate them. Please help Thank you in advance
  7. I

    Animated Sprite Doesn't Work!

    hello everyone, I am facing an issue on GameMaker Studio 2, regarding a sprite animation. I have done several sprites for the hero (the character the player can use), one if the hero object dent move, one if for when the character uses the stairs. I have a problem with this exact sprite, the...
  8. D

    Collision Event not working

    I made a collision event with another objcet but it doesnt work. The strange thing is that it does work with place_meeting. Working: http://prntscr.com/m6rclg Not working: http://prntscr.com/m6rcqi The o_hitbox contains a sprite with the standard collision mask, and the collision event is on...
  9. C

    Inventory System Duplicating Sprites

    Hello all! I watched Beyond Us Games' tutorial on an inventory system () and tried to implement GUI to it, so that it follows the camera and player. For the most part, it works; however, when I press "I" to open the inventory, it creates the object, but duplicates the sprite, to where when I...
  10. H

    SOLVED Debugging help

    Howdy! I'm having trouble understanding what's happening with my code. So, I got this error message: ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Step Event0 for object...
  11. BenSunhoof

    Legacy GM Changing sprite at a certain angle

    So here's the deal. As beginner practice, I'm making a very simple top-down shooter where my character shoots with his middle finger (yeh) which follows my mouse cursor. I've figured out how this is done, but what bothers me is that I can't change the yscale at a certain angle so that the hand...
  12. O

    GMS 2 How do I make the start of an RPG battle system.

    I wan't to make an enemy go towards the player when they get to a certain distance near them and when it makes contact with the player takes them to a battle screen with the character and the enemy on screen. I'm going to just attempt this before adding any kind of ui or options to the screen.
  13. Y

    Legacy GM Need (HELP) in code

    This code is GM2 but need same code but GM1.4 couse this code is now allowed in gm1.4 remember i used another code and worked 100% but dont remember what was that instance_create_layer()
  14. Null-Z

    Legacy GM First Player state Machine.

    Well, I'm finally attempting to convert my jumbled player code into a state machine. but, as to be expected, problems ensue. [/SPOILER] [/SPOILER] [/SPOILER] a REAL mess I know, and probably making things more complicated than need be. but I'm still very unsure how to do this for a...
  15. D

    GMS 2 Font sprite spacing issue

    So I'm trying to add custom font using sprites and it works mainly fine. besides the spaces between words. Am I doing something wrong with the coding or do I need to do something with the sprite? I made sure it's all in the correct order for the string. (font sprite setup with the last frame...
  16. N

    How to get Gamemaker to remember the last room you were in?

    I am trying to get Gamemaker to remember the last room I was in so that every time I enter a room I can choose the starting location based on what direction my character came in from. My first idea was labeling the lastroom = room right before I transitioned from room to room, but the first...
  17. Dr_Nomz

    GML Rectangles, drawing quirk (wtf)

    if (abs(mouse_x - x) < 48) && (abs(mouse_y - y) < 48){ draw_set_color(c_ltgray); draw_rectangle(x-48,y-48,x+47,y+47,0) So what this does is it creates a rectangle (duh), but the way it works is it creates a little square box on every CORNER from the center origin, meaning that instead of...
  18. I

    *SOLVED* Problem in my code, can u help me?

    hi everyone, My name is Johnny, its the first time I write on this forum. I'm experiencing some problems on my game code and I hope that someone can help me: since I coded the animations, my character does not move if the key arrows are pressed, while it moves only using space bar (it jumps...
  19. A

    Jump Animation Not Working with UP key only

    I ran into a problem regarding my jumping animation, and I can't seem to figure out what is wrong or how to fix it. All the other animations I have work great, and the Jumping animations also works great..... however, the jumping animation only plays when I jump while holding left or right...
Top