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

destroy insatance

  1. W

    Destroying a specific instance

    Back for more help. I'm trying to destroy a specific instance, here's the info; There could be many instances of an object. I want to click on one of the objects to bring up a menu. If you click on a destroy button on that menu, you would destroy the instance of the object that was...
  2. M

    How to destrory old instance if a new instance is created?

    So basically I want to destroy the 1st instance if a 2nd one is created. here are the current codes I have: if (instance_number(obj_activetrail) > maxobject) { with (instance_find(obj_activetrail, maxobject)) { instance_destroy(); } } But instead of destroying the...
  3. F

    Looping Clouds – spawning, destroying, adjusting variables

    Hey! I'd like to have cloud shadows that move across the screen, destroying themselves once they move off screen, and then re-spawning. I have obj_cloud where I define the properties: image_speed = 0; image_index = irandom(3); image_alpha = 0.1 * random(0.3); image_xscale = 1 + random(0.2)...
  4. H

    Trying to destroy bullet after it comes in contact with enemy

    I'm trying to destroy objPaper when it collides with objEnemy and any of the child objects. I have the child part done in the object properties but I don't know how to destroy objPaper. Not sure if I can do something inside objPaper. Here's my code: hit = instance_place(x, y, objPaper) if (hit...
  5. M

    GML Visual [HELP] Properly Destroy Single Instance During Collision

    Goal of the game: - One point scored whenever the object_player touches the object_goal - object_goal is generated every 2 seconds at random x position - object_goal is falling from top to bottom - An instance of object_goal is being destroyed during collision with object_player Problem: - The...
Top