• 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

  1. B

    Legacy GM Tetris destroy completed row, need help

    I have basically a tetris like clone and I convert the blocks into 50x50 objects I call "obj_solid". I need to check these rows if they are all filled and delete them all...I have followed an online tutorial and it didn't help....it basically has me jumping to a position and check each one and...
  2. S

    GameMaker destroy a tile with collision

    hello. i want to destroy a tile which have collision with special object (like a bullet) is this possible with GML and how? thanks a lot
  3. X

    GML [Solved] Iterations problem

    100 - 15 = -140 ? Well, that's what game maker thinks anyway. I have a game where a projectile is colliding with the tank that launched it (the player). The projectile bounces off the wall and hits the tank after being shot in a way that lines it up with the player's tank. I have a variable...
  4. P

    GameMaker Does deleting a data structure full of data structures delete all the data structures with in it?

    Does deleting a data structure full of data structures delete all the data structures with in it?
  5. A

    Pause Between Teleports, Should Player Destroy/Respawn?

    I have everything working for a pretty dramatic type of bells and whistles n fireworks teleportation feature going on ..if i do say so myself... so it's not (game-time) instantaneous.. .like you don't touch one pad and appear on the next instantly.. there's time and animation involved, not to...
  6. A

    Child Instance Destroy When Parent Instance Destroyed?

    I'm working on a new project idea with a limited number of instances off an object at any given time (3). Each of those have 1 separate object instance that they create. All these pairs are the same. So there's 3 pairs of object instances "allowed" No more than 3 pairs can be existing. Some...
  7. A

    Destroying Particle Emitters created by a Script?

    Hi guys, I've been decorating my levels with weather made by particles.. snow rain etc.. I have a script "Weather" that gets executed in an object's create event, at the beginning of the room creation. in the script "Weather" that's called... is a switch / case flow with particle creations in...
  8. TheOnlyWRT

    Instance_destroy not working

    Hey, so i am trying to get my enemy sprite to be destroyed after the death animation ends, but for some reason it just turns into another sprite and keeps on shooting..... here is the code i am using switch (sprite_index){ case (spritePlayerDead): var shouldDrop =...
  9. E

    Legacy GM Script is destroying additional objects

    I have this sort of "piano tiles" mechanic where objects are randomly generated in 4 possible positions and drop as you tap and detroy the lowest object. However, when a series of objects are generated in the same line, one after the other, whe destroying the bottom-most object, it also destroys...
  10. W

    Legacy GM [SOLVED] Particle System Setup

    I have a Particle system that I'm running from a script. The script is being called within an object. From there all of the instances of that object emit the particles that I want. I have some code that destroys an instance of that object if it goes off screen. How do I go about destroying...
  11. 6

    Destroy every instances expect one

    Hello All! I'm making a shootemup and i'm quite a begginer in programming. So i've made a powerup system and now i'm making the last one the bomb. I think i'm going quite fine with it but i don't know how to kill every enemies without destroying them one by one. So i'm using collosion circle and...
  12. E

    How Would I Make This Text Box dissapear FIXED

    How would I destroy a textbox made in this video? Hope you can help, Thanks!
  13. S

    Infinite instances?!?

    I have an optimization issue: I'm making a game that builds bricks across a line, and when the line is full it destroys them. But when testing the game, I get 10 or so lines in and the game slows massively. In debug it shows that tons of instances of the brick object are still in the game, even...
  14. W

    Script Particles

    If I have a script with a particle system in it and I've called the burst within an object's step event and there are multiple instances of this object and these instances only get destroyed when they go off of the screen or when space is pressed during a collision, do I need to destroy the...
  15. R

    Destroy an object by clicking on it, help please

    Hello i want to destroy an object by clicking on it so i have create a object call : obj_tap and create a step event and here my code : if mouse_check_button_released(mb_left) && mouse_x == obj_tap.x && mouse_y == obj_tap.y { instance_destroy(); } When i click on the object it do nothing :/
  16. E

    [SOLVED] instance_change - which event do I use it in?

    Hi, I'm trying to spawn a new object when another is destroyed. I'm trying to use instance_change but I've tried everything. I've tried using it in each event that I have created...but no luck yet. I have a destroy event that destroys two objects. One I want to keep destroyed but I want the...
  17. M

    A "Key" Code

    Hi GameMakers! It's me again and I need your help again! This time i was doing a key like in dungeon crawlers to train my creativyty in programming (yes, that was my self-made project) And i got an error that says: "Wrong number of arguments in a function or script" in...
  18. O

    Legacy GM For loop in the Destroy event [SOLVED]

    The issue was being caused by a part of the code that protected the player from new asteroids being spawned on top of them. There were a few fixes, including disabling that feature (not desirable!), disabling destruction of asteroids while invincible, or stopping the child asteroids from...
  19. W

    [SOLVED] Best way to save and load detroyed instances?

    Hey guys, I'm new to the forums, so hello everyone! I'm developing a game where the hero is able to dig at some places. The question is quite simple: For example, when the player digs away some blogs in a room, saves the game, and enters the same room again in a new play session. What is the...
  20. W

    Legacy GM How to destroy particles

    Hello Gm community, Particles are a great way to add visual effects to ones game. For example, smoke, fire and even waterspill or bloodsplatter. Now the problem is that particles are not stopped by solid things because you cannot give them collide-events like objects. In my game I want to add...
Top