• 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!

object

  1. N

    GML Object Variable being utterly ignored

    if state == 0 && instance_exists(ob_electron) { // Only if the wire is active and the the electron is present will this code run. var e = instance_nearest(wire_start_x, wire_start_y, ob_electron); // Assign the nearest instance a temporary variable. if...
  2. Z

    GML Trouble with Enemy Attack Sprite Manipulation

    I have just completed the wonderful GML2 Complete Platformer Tutorial series by Shaun Spalding on Youtube. The code is identical to how he set up his simple shooter, I have just changed the art and little details and values here and there, and everything works! However, my enemies do not have...
  3. jobjorgos

    GML [SOLVED] how to send variables to the unique instance that the object creates?

    I want for each obj_train_cart object to create an obj_inv_block at it own x and y, and that keeps on the x and y also every step after it has been created. But now I get errors that say: variable obj not set when reading it in the step event. What can I do? OBJ_TRAIN_CART Create Event: obj =...
  4. Daniel Mallett

    GameMaker Event / object driven

    I have been using Game maker for a while. It's worked very well for me up till now. It has recently come to light that I may have been doing this wrong the whole time. I understand that GMS2 has events obviously. Draw create step. Great. Until now I have been doing things like if mouse is...
  5. E

    GML 2 Linked objects linked by a Chain

    I'm working on a top-down game and I want to create a mechanic where the player is chained to a metal ball the metal ball can move but it slows down the player. And I'm having a problem with getting it to work properly. I need the player to be able to move, if it's further than the length of...
  6. A

    Legacy GM Draw chain on freely moving object

    Have you ever seen how a chain chomp works? That's basically what I'm trying to accomplish except the object can move freely around the room. The starting point of the chain (white) should either stretch however many chain links evenly across the line between the starting chain and the object...
  7. J

    Collision Object/Collision mask

    Helloo! I am using Game maker Drag & Drop and I have a problem with my collisions masks ( I guess?).. But first the problem: I have a collision object with a normal collsion set up, so my player should be able to walk on it and against it, but not through it. But since I scaled the collision...
  8. Architheutis

    [Solved!] Collision mask to be changed

    Hi there! I`m still in final works of my game. I remarked a simple, but annoying problem: My jump`N`running idle does everything he should. So far so good. But if I duck, he goes down on ground, to dodge incoming enemies. But because of a line in the code within my Player-object, the ducked...
  9. William Garrison

    GameMaker instance create (and resize)

    So I have a thing that creates a flame when you click... problem is I use a sprite thats too big. I dont want to manually resize the sprite. I want to be able to set the size in the command when it creates. How can I do that? Left Pressed instance_create_layer(mouse_x, mouse_y, "Flame", oFireSml);
  10. A

    Having Manager object to check if there's another one

    Hi! My manager object (an object that handles most of the global fuctions and stuff, and is persistent) have many instances scattered across some of rooms in my project. I want them to check if theres already one in the game (before activating and/or executing its tasks) and if there is another...
  11. L

    GML Puts differents object in a group (or assign a tag)

    Hi everyone ! I've a question about GML, i'm young in the world of GML programming and i'm ask myself is it possible to put multiple object under a single tag ? Like if i have 6 different plateform object, can i put on them a "platform" tag ? Thanks for your answers !
  12. Suzaku

    GameMaker Working with tile collisions

    Well Im starting to put my tilesets on my gamemaker project(2d platform game) but now I wonder how people actually deal with those tile colisions as they need to be an object for that purpose I think. I think about using the good and old "invisible scaled object" on a separated layer, but I want...
  13. J

    GameMaker Object disappearing [SOLVED]

    I just want to post this in case anybody else has the same problem. I had an object disappearing for seemingly no reason. I wasn't destroying it or changing rooms. It just stopped running. By checking to see if it still existed, I realized it didn't! In my search for an answer I came across...
  14. C

    GML [SOLVED] Deactivate tiles not in camera view.

    Good evening guys and girls, Im having some issues trying to figure out how to Deactivate tiles outside of the camera View, I basically have a tiling object that draws in random tiles to the whole room (which is 20000x20000) this is basically killing the memory usage of the game So I was...
  15. F

    GameMaker [SOLVED] Diagonal Object Shake

    So, I have a 64x64 object (matching sprite) which shakes at certain diagonals, but not all. I have tried many methods and watched many tutorials. I am pretty sure it is the object, not the camera, because it does this even when the camera is not moving. The ratio is constant, there is no zoom...
  16. J

    GameMaker Object Rotation about a point not working as intended

    I'm creating a game where you control a fisherman and his boat. The boat is controlled with the left stick and the player movement and casting is controlled with the right stick. I'd like my character to be able to move around within the boat while also piloting the boat around the water. I'm...
  17. E

    GML Objects not showing up

    Hi there, my sprite connecting to my object is not showing up. The object is there as it is a button that exists and functions correctly when i click it. I have made sure my sprites have visible checked and is in the top layer of instances above the background. The sprites are middle...
  18. N

    Keyboard Check Pressed Moves through 2 Objects on Vk_Left

    Hello all, very new to game maker studio. I have an Action Select Obj that I want the player to be able to cycle through, I have a step event that where I check if the keyboard_check_pressed is vk_left then hide the first object and show the second. The problem is when I add a step event that...
  19. C

    GML when I choose another instance this one takes the value of the previous one

    Hello, (sorry for my bad English, I'm Belgian) I select an instance, it follows a path, at the end of it I modify a variable of this instance. The problem is that if I select another instance of the object while the first continues its path, when the path is finished, the variable of the second...
  20. R

    Legacy GM [SOLVED] An object checks if another object is in the view

    So I have a wall that prevents the player to move forward until there are no enemies on the view, I though the easiest way was to check just that and then destroy itself, but the code needs to run in the wall object, how can I do that? collisions don't seem to work. Also It can't be...
Top