Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene onInitialize does not fire before actor onInitialize #1553

Closed
eonarheim opened this issue May 21, 2020 · 0 comments · Fixed by #1554
Closed

Scene onInitialize does not fire before actor onInitialize #1553

eonarheim opened this issue May 21, 2020 · 0 comments · Fixed by #1554
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior

Comments

@eonarheim
Copy link
Member

This bug was discovered and fixed in Ludum 46

Steps to Reproduce

Create a scene and override the onInitialize
Create an actor in that scene and override the onInitialize

Observe that the actor onInitialize fires before the scene's, which is unexpected and not according to the documentation

Expected Result

Scenes must fully initialize before attempting to initialize their actors.

Actual Result

When using the lifecycle onInitialize override the order was not respected

Environment

  • browsers and versions: All
  • operating system: N/A
  • Excalibur versions: master

Current Workaround

None

@eonarheim eonarheim added the bug This issue describes undesirable, incorrect, or unexpected behavior label May 21, 2020
eonarheim added a commit that referenced this issue May 23, 2020
Closes #1553

## Changes:

- Update the Scene `onInitialize` order
- Add test to confirm order works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant