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

instance_create_depth

  1. crunchymonkey

    SOLVED Create only one instance of an object

    Hi! So, I'm having this issue where I press the "Z" key using 'keyboard_check_pressed,' my character enters a state where it casts a spell. My method right now is to create an instance of this spell as an object under my player using 'instance_create_depth.' My problem is, I want it to just...
  2. Yizzard

    GameMaker Weird bug with the debugger and instance_create_depth

    Hi, so I'm trying to create an object then modify it but I noticed a weird issue with the debugger in the process... var char = instance_create_depth(x, y, 0, obj_Jeebo); unlockedCharsSpr[cnt] = char; unlockedCharsSpr[cnt].pause = true; In the debugger, I have a breakpoint on the second line...
  3. D

    GameMaker Network drawing from one window to another.

    I have 2 basic projects that only contain objects needed to connect to each other. One project being for the client and the other is the server. The client passes mouse_x and mouse_y location to the server and is then read through an async event. Then finally the mouse coordinates from client...
  4. PlayerOne

    GameMaker An odd result... possible bug? [SOLVED]

    I don't know what to make of this. I'm trying to implement a weapon switching system. The problem comes when I switch weapons and I have seem to have pinpointed the issue to instance_create_depth. What should happen is that when I pick up a new weapon the previous one gets dropped with the...
  5. P

    GameMaker [SOLVED] Instance running code serveral times or old instances not destroyed properly

    Hi! I'm building a game where at one part you build a wood cutter, that goes collecting wood. This works fine, the problem is the next woodworker instance is running code twice. The third wood worker is running code three times and so on. This shouldnt be happening as when the wood worker...
  6. M

    GameMaker Object Does Not Exist Error (It Does)

    Hi, I'm receiving the following error. I have the object in a create event within brackets. The object exists. I first used a draw sprite line in a Draw event but it said the sprite did not exist so I tried an instance_create_depth? I'm not sure what to do now. ERROR in action number 1 of...
  7. csanyk

    Asset - Scripts InstanceCreate

    InstanceCreate is my first Marketplace asset for GMS2. I created it mostly as an exercise to make sure I knew how to create assets for GMS2, and also to "fix" a mild annoyance I have with the instance create functions in GMS2. This is a very simple script for GMS2 users who came from GMS1, and...
Top