• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

drag & drop

  1. C

    Destroying other instances from a "main object"?

    Hey guys, i have a problem with destroying a specific instance. I create an object, called object_enemy_2 and this object creates other objects (light, gun and engine). The enemy has 10 health and when it has a collision with the bullet from the player, health becomes -1 (relativ). When it drops...
  2. R

    GameMaker Sprite Depth with D&D in GMS2

    I have been playing around with GMS2 to see if it would be a good fit for classes where I teach game programming to kids (in the past I have used older versions of Game Maker). I noticed that objects no longer have a "depth" property like in older versions. I searched around a bit, but the...
  3. I

    How to create a drag and drop object?

    I feel stupid for not realizing how to do this after all these years of using Game Maker and understanding more complex stuff. . .I need to create an object that can be dragged and dropped in the room by the mouse. The only way I can do that is by having the object jump to mouse position after...
  4. M

    GML Visual Global variables in rooms

    Hi, I have a problem, I want to put the ultimate score in another room which is the room of game over, but I can`t do it, I tried to do it with a global variable but it`s always on 0 at the game over room. Any advice? I`m using Game Maker 2 and drag and drop.
  5. C

    Question - GML Visual instance_create_layer :: specified layer "Gun" does not exist

    Hey Guys, first of all, I am not a pro and this is one of my first projects. Thats why I use Drag and Drop and not GML. Now I wanted to give my objects diffrent layers, so I created new sublayers and renamed them. I want that the spaceshuttle has the biggest depth then come the bullets and then...
  6. T

    Simple delay using DND?

    So I was following the tutorial series for making a shooter game with Drag and Drop. For the shooting functionality the tutorial has us create a variable for cooldown, set it's value to 0 and then only allow shooting when that variable is less than or equal to 0. I wanted to add a delay before...
  7. G

    Legacy GM [SOLVED] Help to "Choose" which to destroy

    I come here with another post for help. I am working on a project in which every 30 seconds, the scenery changes, getting day and night, and thus changing the sun by the moon. But the question is: How do I, when I change the scene, it is possible to kill only one type of zombie? I have two...
  8. T

    GameMaker Viewports/Camera wont work?

    I have looked into this a bit and dont really know what is going on. Every time I try to run the game with viewports turned on, This happens: This is what the camera looks like in the level: And this is what the settings are: Also, small side-note, I dont know if anyone would even...
  9. S

    GameMaker Enemy Paths Screwing Up?

    Ok So Here is The Explination I Am Building A Small Racing Game To Just Sorta Play With My Friends And Test My Skills And I Have The Path Set For The Enemy Racer And The Path Is Setup Correctly I Tripple Checked But When The Enemy Object Gets To The First Turn It Just Goes Straight Through The...
  10. S

    Drag and Drop - Basic Movement/ collision / walking animation/ - tutorial part 1, 2, 3, 4 - GMS2

    GM Version: GM:Studio Target Platform: Desktop (should work with Mobile and HTML5) Download: none -- see videos below Summary: A video tutorial series showing movement with Drag and drop coding. o_O Hey there guys, here is part one of this DnD drag and drop basic movement tutorial. This...
  11. Y

    Legacy GM I need help with drag and shoot

    I'm trying to make a 2D golf game with a drag and shoot. I don't really know how to fully achieve this drag and shoot thing. One way I tried doing it is by //Slingshot of ball click = false; //First instances of X and Y mouseX = 0; mouseY = 0; //Second instances of X and Y mouseX2 = 0...
  12. S

    Android Speed multiplying

    I am using the drag and drop version of game maker 2, but am having trouble with getting my player to move faster with each tap. I can get him to move with each tap, but I need him to go faster with consecutive taps.
  13. J

    Windows Can't convert to GML

    Whenever I click on Convert to GML from Drag N' Drop it does not do anything. This only happens for object creation code in room editor, no where else. This only happens to this project. Here's a picture of exactly what happens. This is annoying as I don't use Drag N' Drop. How do I fix this?
  14. W

    GML Visual change sprite index then change back to original

    Good evening all. So I may be going about this the wrong way. What I am trying to accomplish is when the player (obj_player) gets hit by the enemy spawn (obj_enemy) the sprite changes to an "ouch" face. I can do this with the sprite_index code for GML. I figured that much out but once it...
  15. K

    GML Falling and stopping blocks

    We are doing a school project and after our blocks fall from the top of screen they won't fall again after they collide with another. I am willing to do scripts if needed. The picture is a before and after it will show what I am talking about. Notes: Game Maker Version 8.1 Objects not centered...
  16. R

    DRAG AND DROP part 3

    I'm following the instruction in the video but my bullet objects are being destroyed too far from enemies. I already checked the sprites positions according to the video and seems right. any suggestions? thanks
  17. A

    GML Visual (SOLVED) Trying to Draw only 3 Units of Health

    Following along a few chapters of The Game Maker's Companion, I was able to create a near-perfect Zool game. Given the fact that said book was written with Game Maker 8 aka GM: Legacy in mind, the prescribed methods I used to make it still hold up well in GameMaker: Studio. But by the end of...
  18. Z

    GML Visual A Drag & Drop question

    I'm watching the tutorial "Your first game (DnD)" vids on youtube and I'm up to Part 3. () Around the 4:00 mark, Sean drops the Assign Variable action into the workspace, names it HP and sets the value to 5, then he drags another Assign Variable action and attaches it under the first one. He...
Top