Skip to content
Discussion options

You must be logged in to vote

That's a good question, I'm also new, but I can think in a simple, but maybe naive solution:

1- out_of_bounds system, where you check if the object is out of bounds and despawn it;
2- remove_dead system, where you just check if hp is zero and remove enemies;

In other words, move the despawning to it's own system, based on the shared data between those systems.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@shouya
Comment options

@shouya
Comment options

@afonsolage
Comment options

Answer selected by shouya
Comment options

You must be logged in to vote
2 replies
@Qwyntex
Comment options

@Rexcrazy804
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants