Ok, so I’ve been working on this game for a while now, and suddenly I found this problem I can’t seem to fix, whenever a bullet hits the tank, an explosion object is created, just like in the tutorial, but apparently , there’s another explosion being created that the “origin” of the game window, this usually happens when the thing has to spawn something but can’t find the location, now there’s only one event where the object bullet collides with tank, creating an explosion, if I remove the action that creates the explosion, the explosion is not created on the tank, but it’s still created on the corner of the screen, this has me baffled.
Any of you found this problem before?
If I remove the action to create the explosion object I get this:
I tripple checked the whole thing in order to make sure bullet doesn’t interact with tank at any other event and it doesn’t.
Ok so I found the problem, it recides on this event:
Basicly, this should make bullets explode when they’re further away than 500px from the enemy, but it looks like when a bullet is deleted, it tries to see if it’s further away than 500 and since it can’t find it, it assumes it’s far away and makes another explosion, since it can’t find the center of it because it was deleted, it generates another explosion at the corner. Any tips on how to achieve what I need without the bug?