Bug Issue: Scenes behave differently based on whether they're restarted or switched


Pages: 1

oripessach

  • Subscriber - Stencyl Studio
  • *
September 24, 2015, 10:00:11 pm
I have a pretty elaborate actor behavior that works well if I switch to a scene for the first time, or if I switch away from the scene to a menu scene and then back.

When I use the reload scene block (reloadCurrentScene()) things go nuts. The logic that I implemented to prevent the actor from sticking to walls fails. Collisions start getting weird (I can walk toward a wall, then turn and try to walk away, but the actor gets stuck near the wall.)

These things don't happen if I don't reload the scene.

My behavior doesn't use game attributes for this logic, by the way, so there's no dirty state left over.

What the...?


oripessach

  • Subscriber - Stencyl Studio
  • *
September 24, 2015, 10:07:18 pm
Ugh. Feel free to close this. There is ONE boolean game attributes that changes between the first time you run a level and the subsequent runs... And it does change something. Looks like a bug in my code.


Issue updated by Jon - September 24, 2015, 11:40:44 pm
  • Status changed from New to Closed


Pages: 1

Details

  • Reported
    September 24, 2015, 10:00:11 pm
  • Updated
    September 24, 2015, 11:40:44 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    3.3.2
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags