Actors seem to be recycled by Stencyl automatically, but collision shapes are not properly reset when this happens.
Recreating this issue:
1. Create three groups: Projectile, Target, and Intangible. Projectiles only collide with Targets and vice versa, and Intangibles collide with nothing, not even themselves.
2. Create three actors: a Spawner with no collision boxes, a Bullet of group Projectile, and a Bullseye of group Target.
3. Every 3 seconds, the Spawner creates a Bullet at its own x and y position.
4. When a Bullet is created, its x-speed is set to 20 (or any positive value) and kills itself after leaving the screen.
5. When a Bullet hits something else, if the other actor is of type Bullseye, set all collision shapes for the Bullet to group Intangible and kill the Bullet.
6. Change the physics for the Bullseye to "Cannot be pushed".
7. Create a scene. Place a Spawner somewhere on the left and a Bullseye directly to its right. Test the game.
Expected behavior: Every three seconds, a Bullet is created, travels to the right, and disappears upon contact with the Bullseye.
Actual behavior: Every three seconds, a Bullet is created and travels to the right. The FIRST Bullet disappears upon contact with the Bullseye, but every Bullet after the first travels through the Bullseye as if it didn't exist.
Recreating this issue:
1. Create three groups: Projectile, Target, and Intangible. Projectiles only collide with Targets and vice versa, and Intangibles collide with nothing, not even themselves.
2. Create three actors: a Spawner with no collision boxes, a Bullet of group Projectile, and a Bullseye of group Target.
3. Every 3 seconds, the Spawner creates a Bullet at its own x and y position.
4. When a Bullet is created, its x-speed is set to 20 (or any positive value) and kills itself after leaving the screen.
5. When a Bullet hits something else, if the other actor is of type Bullseye, set all collision shapes for the Bullet to group Intangible and kill the Bullet.
6. Change the physics for the Bullseye to "Cannot be pushed".
7. Create a scene. Place a Spawner somewhere on the left and a Bullseye directly to its right. Test the game.
Expected behavior: Every three seconds, a Bullet is created, travels to the right, and disappears upon contact with the Bullseye.
Actual behavior: Every three seconds, a Bullet is created and travels to the right. The FIRST Bullet disappears upon contact with the Bullseye, but every Bullet after the first travels through the Bullseye as if it didn't exist.