In this example, in frame 1 cull() removes the above, below, and left sprites but not the sprite to the right of the canvas. group.includes(spriteRight) returns true for the first two frames and then false.
I just learned that for of loops do not automatically compensate for if a sprite is removed! That's why it removed only removed two sprites the first frame. Just fixed this in v3.6.9!
In this example, in frame 1 cull() removes the above, below, and left sprites but not the sprite to the right of the canvas. group.includes(spriteRight) returns true for the first two frames and then false.
View on web editor
What's going on?