We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes it is useful to pause the update and/or draw of an actor without removing it from the scene to save on performance.
One examples might be NPCs that exist offscreen and don't need to run their logic until they are onscreen.
Add a new method (open to different names) .pause() or .unpause() that should leverage the entity.active property to suspend updates and/or drawing.
.pause()
.unpause()
entity.active
.kill() should be updated to use a different property internally.
.kill()
The text was updated successfully, but these errors were encountered:
This issue hasn't had any recent activity lately and is being marked as stale automatically.
Sorry, something went wrong.
No branches or pull requests
Context
Sometimes it is useful to pause the update and/or draw of an actor without removing it from the scene to save on performance.
One examples might be NPCs that exist offscreen and don't need to run their logic until they are onscreen.
Proposal
Add a new method (open to different names)
.pause()
or.unpause()
that should leverage theentity.active
property to suspend updates and/or drawing..kill()
should be updated to use a different property internally.The text was updated successfully, but these errors were encountered: