W
Wild_West
Guest
I'm having a problem with a particle setup.
I gave my character a simple shoot for a new game prototype I started. and rather than make a sprite for the "bullet" (more of an energy ball but whatever) I decided to make a particle effect.
so I did and it looks fine but when the object is destroyed, I need it to disappear so I can shoot another because the setup is you an only shoot 1 at a time. Meaning if 1 energy ball exists you can't make another until that one is gone. But it doesn't seem to be getting removed. The OBJECT will, but I can still see the particles from the last shot where that shot was destroyed.
I use part_type_clear in the object's destroy event, and it's destroyed when it leaves the room or hits a wall. I tried part_type_destroy, part_emitter_clear, but I can't get it to work. what am I doing wrong here?
I gave my character a simple shoot for a new game prototype I started. and rather than make a sprite for the "bullet" (more of an energy ball but whatever) I decided to make a particle effect.
so I did and it looks fine but when the object is destroyed, I need it to disappear so I can shoot another because the setup is you an only shoot 1 at a time. Meaning if 1 energy ball exists you can't make another until that one is gone. But it doesn't seem to be getting removed. The OBJECT will, but I can still see the particles from the last shot where that shot was destroyed.
I use part_type_clear in the object's destroy event, and it's destroyed when it leaves the room or hits a wall. I tried part_type_destroy, part_emitter_clear, but I can't get it to work. what am I doing wrong here?