gms 2

  1. I

    GMS 2 How to recreate a depth value.

    I hope this is the right forum for this. I have some familiarity with GMS1 from my youth so I bought GMS2. With my main aspirations being the creation of a psudo3D game which utilized the depth feature in the Drag&Drop. I have seen some murmurings of a way to use a depth function within the...
  2. TheRudolfGaming

    Windows Client connecting to the server doesn't see already connected clients.

    Hello. I am currently in the foundation phase of a making a game with multiplayer functionality. But currently I've hit a speed bump and been unable to fix it for the last 3 days. I've made an non-dedicated multiplayer system, where one player hosts the game, and others connect. (Host will...
  3. M

    child with multiple parents (grouping objects)

    Hi guys I just figured out, that a child object can have just one parent. I would like to group some objects for different collision checks and behaviours, but some objects has to be in multiple groups. How can i solve this? Example (Pseudo code)...
  4. Swisspick

     Collaboration almost impossible with GitHub

    Hello Everyone I have now tried multiple tools like GitHub, Bit Bucket the vanilla GMS 2 Repository Tool etc. for collaborating with a friend. This is however almost impossible by the fact that creating folders, objects, scripts etc. also add code to the main file and other files. Every time...
  5. A

    GML Get the id's of two instances of the same object

    Hi, I am currently working on an airline management game in Game Maker Studio 2. I have a background sprite of Europe and one kind of object (obj_destination) on every airport. I am working on routing but I can't figure out a way to get the id's of two obj_destination (departure and...
  6. K

    Switching the enum state and keep moving

    Hi, I have an action rpg project. In the player object i have an enum with 3 states: move state, dash state and melee state. When I´m dashing or attacking the player just stops until it finish the action. It turns out that I´m trying to make the player move when i´m attacking or dashing (before...
  7. Rare Truffle

    GMS 2 Multiple Object collision possible?

    Hey yo! I've searched through the forum but couldnt quite find a fitting solution for my problem. I hope one of yall can help me: I am making a simple 2D Platformer on GMS 2. I wrote a code, so if the player gets near "Obj_Block_1" the Player collides with the Object. In other terms it becomes...
  8. D

    draw_rectangle function behaving incorrectly on scaled GUI layer

    Hi all, I'm having an issue drawing a rectangle with the Draw GUI event in GMS2. The game has a room size of 320x180, and I'm running a 1920x1080 window. Everything seems to work as expected except for the draw_rectangle function, which seems to add 1 game-scale pixel to the coordinates I give...
  9. B

    Left Mouse Released Event Unresponsive

    I was copying a tutorial on how to make a simple system of dragging individual cards onto a deck of cards. I've copied the code exactly and know it's right. It seems that the left mouse pressed and released events are just unresponsive. Most the time I click on a card and it stays following the...
  10. M. Idrees

    Camera Zooming And Draw Event

    Hi, I have a camera object that zoom in and out. When zooming I want no change in the size of some text and sprites I mean they remain in fixed size. How I do it ? Thanks
  11. E.M.I

    3D [RESOLVED] Adding centers of gravity to 3D GMS2

    Hey there! After working on 2D projects for about a year I've decided to try out 3D in GMS2. For now I'm focusing on player movement and the visual style, but I know the game is going to involve jumping between small planetoids with their own centers of gravity, and I have no idea how that would...
  12. Dwighty4000

    Windows What is YYC and VM? And what did I wrong in my case?

    I have put the code in the place in the YYGML.h file as indicated. Then I pressed: "Delete Asset Chache" in "General Settings" -> "paths". Then I saved and ran the application with F5, then saved again with: "Ctrl + S" and exported. When exporting, however, the specified additional files were...
  13. Dwighty4000

    GMS 2 How to make Steam Screenshots?

    I tried to incorporate the code from the wiki page but this is wrong when you insert it! What am I doing wrong here and what do I have to do so that I can take screenshots that are then saved on Steam? /// @description Making Steam Screenshot steam_send_screenshot(filename, width, height)...
  14. Dwighty4000

    GMS 2 What is wrong with the Steam Screenshot fuction?

    When I didn't know I pinned the ID from the Steam page in Gamemaker Studio to my game to unlock achievements etc. Everything still worked independently and I was able to take screenshots in my game without programming a specific function for it in GMS2 in my code. But since I inserted the Steam...
  15. A

    GMS 2 Only One Item Is Drawing In My Inventory.

    I'm sorry that I have to make another thread so soon. This probably wouldn't have happened if I remembered to make a backup as I usually do before adding something else and I made too much progress to go back to a previous version. So, still following the same tutorial from last time (though I...
  16. Kiwi

    3D Rotate sprite from centre, not from side (GMS2) [SOLVED]

    I'm playing around with 3d at the minute which is quite fun, I've learned how to use vertex buffers and formats to create walls, floors, etc. I'd like my npc's to always face the player, but they seem to be rotating from the side rather from the middle for some reason. I've made this npc spin...
  17. A

    [Solved] My inventory stopped drawing and I'm unsure why.

    I've been trying to get help for this for a while now. So there's that. I've been following this tutorial (but with some things removed to fit what I wanted). I finished the second part and decided to mess around a bit by changing the inv_slots = 15; to "inv_slots = 10" but then it broke; the...
  18. ai_ash

    Problems with for loop in DRAW-event

    Problems with for loop in DRAW-event Greetings, I’m new to coding and wrote my first line of code only a month ago. Been following tutorials on Skillshare & YouTube and currently taking baby steps still. So, I want to draw a grid (tower defence game) in my room and for some reason just can’t...
  19. sinigrimi

    GMS 2 [solved]removal from instance_create script if the object was destroyed

    Hello! When I enter the room, it reproduces the blocks, but when I move to the next and return to the first, nothing is reproduced in it :( p.s .: rooms are not from GM but are generated in the same GM Room after moving outside the camera. I would also like to know if I can mark these objects...
  20. Dwighty4000

    GMS 2 Gamepad control - what do I wrong?

    If I try to run with the left knob, then only the up and down run works because nothing works with the gamepad on the left and right. And the directions that work are carried out endlessly after just a short movement! What's wrong here?: #region Laufeingabe var hoch = keyboard_check(vk_up) ||...
Top