D
Denis Elias
Guest
Hi
I'm new to GML.
What I try to do:
My bullet object is colliding with my enemy and I want to destroy both of them.
So I added an collision event and wrote:
instance_destroy();
while (other)
{
instance_destroy();
}
The runner just stops responding.
When I use collision events in both objects with only instance_destroy(); it works as it should.
Seems that I cannot access the other object with "while"
I think I am doing something wrong here. Can someone help me??
Thanks a lot!
I'm new to GML.
What I try to do:
My bullet object is colliding with my enemy and I want to destroy both of them.
So I added an collision event and wrote:
instance_destroy();
while (other)
{
instance_destroy();
}
The runner just stops responding.
When I use collision events in both objects with only instance_destroy(); it works as it should.
Seems that I cannot access the other object with "while"
I think I am doing something wrong here. Can someone help me??
Thanks a lot!