Bug Issue: Collision shapes not resetting with real-time created actors.


Pages: 1

b2jammer

  • Junior Stencyler
November 19, 2018, 01:21:54 pm
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.


rob1221

  • Master Stencyler
  • *
November 21, 2018, 12:43:06 pm
Fixed in b10101.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to rob1221


Pages: 1

Details

  • Reported
    November 19, 2018, 01:21:54 pm
  • Updated
    November 22, 2018, 07:29:21 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4, 3.4.0 beta4
  • Fixed in
    (none)
  • Assigned to
    rob1221
  • Category
    Collision Groups

Tags