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

objects

  1. Staral

    SOLVED Passing an object to a function turns it into an ID

    Long story short, I need an object (like the physical object in a room) to be given to another object, this holder object is created during a function. The problem is that for whatever reason, I can't give the object or the Id to my holder object. // All of these turn it into an id (as in...
  2. C

    GameMaker Duplicating when creating sprites, objects, etc.

    I'm using GitHub to save my work in GameMaker, but I'm facing a duplication issue when creating sprites, objects, and events, which is very inconvenient. However, after committing and closing GameMaker, everything gets fixed. This may be related to the fact that I'm using MacOS; I'm not sure if...
  3. G

    Point variable refusing to change in a clicker game.

    I'm trying to make a clicker game, but the variable refuses to go up when I click on the button. Code inside of the game object. Create Method: global.points = 0; Draw GUI Method: draw_text_transformed(375, 100, round(global.points), 4, 4, 0); Code inside of the button. Left Pressed...
  4. Erik Leppen

    GML (solved) How to check whether a variable holds an instance vs. an object

    For years I have used the following code in a debug functions: if instance_exists(v) and not object_exists(v) { /*...*/ } This code is meant to check if the variable v is actually an active instance in the current game state, and not an object of which instances are active. This worked for...
  5. O

    GameMaker What optimization i need?

    I have a game that in the biggest stages has almost 140 objects inside the room. Is this the optimization I have to do? https://gamemaker.io/en/blog/forager-optimization-in-gamemaker In the tutorial quotes much larger numbers should I go the other way? Already have the off-screen disabled...
  6. Jasuke

    Isometric, interactive Tiles

    so i want these tiles, to be able to switch sprites etc, i want to controll them mostly, by the tile manager, and wanted to assign every one of them an x and y coordinate. is there a smarter way to do it automatically, so that i can interact, with every tile on its own, or in a pack
  7. Jotesco

    SOLVED Problem with multiple instance objects with the same Path

    So, i using a object with a butterfly sprite. Created various paths to make the butterflies more lively, if i stay with only one object of this butterfly, everything goes perfect, but if i add more of them, they start to glitch, changing the position suddenly. Here is my code: function...
  8. I

    Instances

    I have two Objects 1- oStone and 2-oWallStone And under every oStone Object There is An oWallStone under it so that I can Collide with and don't walk through it. So what I want to do but can't is to destroy the oWallStone instance That's under the oStone that I picked up so how do I do something...
  9. S

    SOLVED Rotation with an anchor point in another object

    I am basically trying to do this: I have a card game in which I need the cards to rotate based on a common anchor point in order to make a kind of circle of cards but with a hole in the center. The anchor point would be the position of another object to make it easier. but I can't find the way...
  10. flyinian

    Development (Solved)How can I assign more than one object to a function like collision_line_list w/o using parents/inheritance?

    Am I able to assign more than two objects with in the object field of the collision_line_list with out using parents or inheritance? If so, what are my options? Thank you.
  11. Cheap Shampoo

    Best way to handle a ton of objects? Structs?

    How do I go about turning all of my objects into structs for performance issues? I've been looking around online and can't seem to get a grasp on it. Is there a way to have the parent object and just repeat it to use less memory? Is there a better way to use the same object a few...
  12. L

    How to assign different objects to each player?

    Hello, I'm making a multiplayer game in which I want each player to have their own character randomly assigned to them each round. However, the manual (and other online guides I can find) only explain how to assign each player the same character. I was wondering how I could go about this. Thank...
  13. ToastyKitsune

    SOLVED Instances in other layer get deleted when any draw function is called.

    Basically as the title says , i have a character running endlessly and whenever his state changes and calls a draw_self all of the instances in another layer that do not contain a draw function in them get deleted (not just go invisible , i checked with debugger). But that's not all , when i...
  14. jucarave

    GameMaker Is it better to have multiple game objects or multiple instances with creation codes?

    Hi everyone, I'm doing an RPG and I'm wondering on the best way to handle NPCs and items. I can do them like: 1. Having 1 game object "objNPC" and then changing the dialog and sprite of all the NPCs in my game using the creation code in the room. 2. Having 1 game object per NPC which inherits...
  15. P

    GameMaker Fix a side of an object

    Hello everyone! I'm in the middle of developing a Boss Fight into my game and run into a problem, I have an attack (from the boss) that should go around the room like some clock hands, so having the "head" of the object always in the middle, and the rest of the body to move clockwise. I also...
  16. N

    SOLVED Multiple Objects / Instances Causes Strange Behavior

    This one might be hard to troubleshoot without replicating the problem, but I figured I'd give it a shot and ask the question anyway. I'm basically making an Onitama (Or Chess, Shogi, etc) type game, so I want the player to click individual pieces then click valid spots on the grid to move...
  17. N

    Clicking through other objects between rooms

    Hello all, I'm currently working on a Drag+drop game as a hobby, and I am running into a problem I had on GM1 years ago, and it is that there's a point where two objects that overlap in different rooms click through each other. For example, a "back arrow" button on in a room is in the same...
  18. K

    SOLVED error when using instance_create_layer

    When i try to create a instance it says that the object was not set before reading, does anyone know why this happen and how do i fix it? This is my code Event: collision with obj_asteroid instance_destroy(); switch(sprite_index) { case spr_enemyShip: { with(other) {...
  19. C

    Avatar-based button with circular background: advice needed

    Hi, first post, so my apologies if it's a wrong place, and if it is, please redirect me. This must be a simple thing but after hours of googling I'm still stuck. Here's the scoop. I have a series of sprites with avatar faces. I also have a sprite of a circle that is meant to serve as the...
  20. B

    Nothing I do will show up as a preview

    I have done almost everything to try and get sprites/objects to show up on gamemaker for Windows 10. I have: -updated runtime -restarted PC -made new projects -drawn events (only gotten text) -removed avast -made objects persistent -changed background color -run other people's demos (WHICH WORK...
Top