I have a bunch of instances of the same object on the screen. I created them using the instance_create code. Now when I hit one of them I want it to explode. I don't have a problem with the game knowing which one gets hit because I kill that instance and it works. But when I tell it to create the instance for the explosion on the position of obj_blue_block.x and obj_blue_block.y it puts the explosion on the very first one created (blue block that is). I want it to put the explosion on the block being hit.
Please explain how to code that in gml. I am guessing I need to know where that blue block is at but there is no way to know that because they are created in random places on the screen.
Edited by gamzta, 17 June 2012 - 07:46 AM.











