gml

  1. ItsTimeForTim

    Discussion How can I have a game made with GML be playable online?

    Howdy y'all, so I'm just a dude who does game design with GML in my free time. Not professional at all, without even any professional aspirations. So anyway, the question at hand is do any of y'all know of any website where I can somehow upload a game made with GML TO it? Because I have a...
  2. S

    GML Draw many autotiles on a big room surface with code

    Hello everyone, For my small multiplayer RPG project I'd like to draw the whole map in 1 single room. The map would be composed of layers of autotiles (grass, water...). I also need some tiles to have a certain depth in order to assign a height to it: if an object is on a tile then it's...
  3. Staral

    GML Pixel scales are too big/small (can't get a medium)

    Hi, I've got a camera system for my game, it works fine I just cant find a good size. I have a surface scale of 3 and a camera scale of 1. When it's at 1 I feel like the camera is way zoomed out. (My character is 32*32 pixels btw) and when it's 2 I feel like it's way too close. If I were to set...
  4. S

    Object detected as resource

    Hi, I'm new to this but my friend has been teaching me how to code. I've had this issue twice now and I was wondering if anyone knew what was going on? Sometimes, when I make an object, it doesn't seem to be detected as an object. It shows up like a variable in the code and the drop-down menu...
  5. J

    Help with object sprite change

    I've been struggling with this for a while. My goal is to have my player be able to open a locker when they are near it using the space key, then after it is open allow them to hold the space key which will hide the player and change the locker sprite from open to closed. I just need help...
  6. wib030

    GML array not being inserted properly?

    hi! I'm semi new to gamemaker 2 and im having some issues with some code im writing for my game It's for my party system switching specifically, i have an array with structs in it for party members, as well as an active party member struct (separate) To switch i copy the active party member...
  7. Staral

    Help with player not being able to move as close to a wall as possible

    Hello, I have gotten very hung over on a minor inconvenience in my game that is walls. My game is top down and I'd like for when you hug up against a wall your character is able to get as close to the wall as possible, the player is often off the pixel grid (their x and y aren't whole numbers)...
  8. Santy Claws

    SOLVED Error DoAdd: 1: Illegal Array Use

    I'm relatively new to GameMaker Studio, but to give some context I'm following a tutorial on how to make TextBoxes. Although I have roughly the same code as the Tutorial, the moment I run the game, it says: "ERROR in action number 1 of draw event for Object DoAdd: 1: Illegal Array Use at...
  9. GamerXP

    GameMaker Check if function is a constructor

    As title says. Is there a way to check if given function is a constructor or a normal function before calling it? Why I need it? I wanted to allow my state system to accept constructors as states when necessary, but I couldn't find a way to distinct between 2 in the docs. Am I missing something...
  10. R

    GameMaker Integrating Tiktok Live features to Gamemaker

    How would I go about integrating Tiktok Live features to Gamemaker? I see that there's an unofficial project on github that's able to collect information from tiktok on gifts, usernames, etc. (https://github.com/zerodytrash/TikTok-Live-Connector). How would I approach this? I'm still a bit...
  11. Simon Gust

    GML When should I use a method? How does it work? How do I write it?

    Hey, I'm doing a bit of code restructure. Previously I've had all functionality in one object and it's getting a bit messy so I decided to split some functionality into other objects. I don't want to go full OOP but I just wondered... Is there any reason, beyond just following OOP guidelines...
  12. L

    Need help finding the right physics method

    I'm making a platformer game but I need to add some kind of gravity. I'm looking into this video but I'm not really sure if this the right way, so I'm just looking for other opinions on this and see which method is more better.
  13. J

    SOLVED enemy come from the top

    Hi i am new to gamemaker and i need something from my game I need where the enemys are coming from the top of the screen.
  14. GapingPixel

    Portfolio - Programming [For Hire] Senior C++ Programmer Looking for projects >shipped games experience<

    Experience 8+ years of experience in game development (C++, Unreal Engine, GMS, monogame, unity) Worked on 7+ succesful projects released on Switch/Xbox/PS5/Steam (e.g. Deaths Gambit, Dungeon Souls, Fallen Angel) Particularly experienced with advanced AI and collision systems, strong math...
  15. Nukrei

    GML Hold objects with physics

    I was trying to create a way to hold an object that uses physics for my project (like the People Playground), but when I was writing code to hold the object with the mouse, I couldn't get the object to continue with its speed and direction after you let go of it, it just stops and falls I'm...
  16. FilthyToad

    My attacks are only in effect for a single frame

    I have tried to implement a simple melee attack but after a single frame it is reverted to what it was before I haven't yet added a hp system but that is soon coming. Can someone please tell me the problem and a solution if (key_attack && on_ground) { if (!attacking) { attacking...
  17. thejosving

    GML Having problems with instance detection

    Hello! I've been having problems with instance detection between two objects. I made a drawing to explain what I want: My code is very simple. In Create I have: point[0]=noone; sight=32; In the Step event: var nearpol=instance_nearest(x,y,oPoint); if nearpol<sight { if point[0]=noone {...
  18. A

    SOLVED Attack System

    Hello, i'm developing a 2d metroidvania platformer game and i'm trying to make an attack system for the character, the system generally works fine but sometimes the animation doesn't work properly. My codes and video recording below Character Step: //Attack if (key_attack) && (state != "duck")...
  19. blaiddx64

    GML Read Build-in GML functions source code

    Hello guys, There's any place where I can read the source code of build-in GML functions? The mouse's middle button returns the documentation that explains what the function does and how it works, but if I want to read exactly what it does, line by line, can I do that somewhere? With build-in...
  20. YungCortex

    Warp issue (invisible warp points????) i cant figure it out for my life

    whats up guys so i havent had this issue at all until today the warps worked totally fine, but now i created a new room as a test (the one with items in it that it warps me out of) and for some reason i have these invisible warp points that take me to different rooms? i cant figure out for my...
Top