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

  1. A

    How to assign a sprite to an object in mac?

    I am a beginner who is currently using GMS2 on mac and can't find any option to assign a pre-existing sprite to an object. When creating an object I can only see the option to make a new sprite; I tried dragging and dropping but that doesn't work and any tutorials I searched online are for...
  2. MVPBiggles

    SOLVED Game crashes upon setting instance variable

    First, some context for this question: I have this object called obj_treasure, which functions as an abstract pickup for treasure items in my game. Each treasure is a child of obj_treasure that contains its own specific data (sprites, name, description, etc.). Normally, I want the pickups to...
  3. YoSniper

    GameMaker [SOLVED] GMS2: Instance Will Not Create

    I am programming a game where a player collects coins. Collecting ten coins without a miss is meant to incur a "streak" bonus. This will be represented by an object that displays text next to the score HUD that rises and fades away. Score is kept by a singular persistent object called World. Up...
  4. S

    My drop down menu isn't working?

    I'm trying to build a menu that opens from the location of an object. I have this script written, but I can't figure out why it's working. It's supposed to draw a rectangle and then build some clickable text objects on top of it, but for some reason when I call this script it doesn't seem to...
  5. L

    Object keeps respawning

    I got a textbox system here, but I got a problem that when the textbox destroys itself, it creates itself again due to this in the step event of the person I'm talking to: (KeyInteract = vk_space) if(!instance_exists(obj_textbox)){ if(place_meeting(x, y, obj_player)){...
  6. S

    GameMaker Help with Object Permanence [solved]

    In my game the player can craft and place furniture. I already have the crafting system down and the placing system. however after I use "Instance_create_layer" the object is created, but when I leave the room and come back it disappears. How can I make it so the object is still there when I...
  7. HATER

    Getting objects to follow viewport (SOLVED)

    In the step event of the main character there is a code that makes a invisible object spawn and despawn on top of the character. The object allows the player to pause the game and brings up the menu, but because the object spawns on the character, if the character is too high or too low the menu...
  8. S

    Best way to pin an object and track movements?

    Hey all, new to the community. Very excited to be here. When doing things like arms and torsos that rotate from a top view, what would be the best way to track the objects all together? It doesn’t seem like parent/child thing is the right thing to do as it’s mostly for inheritance. Here is the...
  9. T

    GameMaker Getting Object Variable With No Instance

    I'm wanting to use an object's variables, not an instance's. I have a build system setup to reference an object and then build the referenced object. After selecting the object to build from the inventory I'm getting an obvious error that there is no instance to pull in data from the...
  10. R

    GameMaker How do you make an object appear after an array has completed?

    Howdy neighbors! New to Gamemaker2 and I got stuck on this lil piece. I made a dialog function where a box appears and the user cycles through an array of strings to read what the other character is saying. I want to put an object that appears directly after the array has cycled through which...
  11. Daniel Mallett

    GameMaker Can't run objects from new room allthough room opens

    I can open another room. I can run non draw code from the create section of the other room. But As soon as I try to run an object it doesn't matter what code it has nothing executes. I can show a message box from creation code but I can't run an object that shows a message box if it has been...
  12. M

    Legacy GM How do I stop a path with one object and continue it with another in gml?

    So right now I'm developing a small tower defence game, and I'm struggling to make it so that when I kill 1 yellow enemy who is half way through the path, the weaker red enemy will spawn and continue from where the first objects path already was. This is my path start code -...
  13. Still57

    Performance issues with multiple objects [SOLVED]

    Hey everyone! I made a Minesweeper game for Android and iOS (I'll leave links down below) and noticed that my iPhone 6 was burning up after I played with it for around 10 minutes. I am using GameMaker Studio 1.4.x (the release prior to the latest one). This is how I programmed the game: I...
  14. P

    Windows how to code x and y as relitive

    i'm makeing one object create a different one useing instance_create(x,y,obj); and I want to make the x and y points the object is created at to be relitive to the object creating it.
  15. C

    Clicking a set of objects and making another appear.

    I am very new to Game Maker and don't seem to find the right way to solve this: I have 5 objects in a room, and need another object (or text) to appear only after all 5 were clicked (as, per example, a clickable object to move to another room). What is the better way to do this?
  16. S

    Legacy GM [solved] controlling object crashing (unintentional)

    Hey everyone, Long time no see.... The project I am working on has zillions of assets that are being generated and then destroyed by a controlling object. The controlling object checks the distance between the player object and the assets. If the distance is less than 400 and the object...
  17. H

    Creating an Object based on the Roomview

    Hello there! Im currently working on a platformer and I would just like a little help with objectcreation. As of now, when my player collides with an object, a "gameover" object spawns with the text, indicating that it is game over. However, currently it only spawn at the position the player...
  18. M

    Question - Code Step event of an Object instanciated by another one

    Hi, I'm actually working with object (call him A) that is in his step event instanciating other object (call him B). I'd like to know if step event of A will always run before step event of B?
  19. R

     Simplify construction of sprite-object pairs

    In GMS 1 it was always a pain having to create a sprite, then create an associated object and manually pair the two together. This behaviour is currently the same in GMS 2, but please consider improving it so that an associated sprite can be created from within the object window and vice-versa...
Top