Hello there,
I’m using Phaser, and have a Container of Sprite’s; I’m attempting to call the helper methods that are provided such as moveTo, moveUp, etc… but they don’t work. If I log them I can see the changes, but not in the actual sprites being rendered.
Do I need to trigger a re-render somehow or something?
If I call this.shuffle(); on my Container, I can log the list object above before/after and see it has shuffled them successfully. However, the actual rendering of these sprites does not reflect that, it just stays static as the initial order before calling shuffle. I assume this is because it is not re-rendering after the shuffle change has been made, but I’m not entirely sure how to get it to re-render.
This applies to even shuffle? That seems a bit odd. I’ve looked at some of the methods in the docs and their descriptions make it sound like exactly what I want. E.g moveTo(child, index).
Even this function doesn’t work, yet when I read the docs for it, it states that it will move the child to the specified index, and it does, but it just doesn’t re-render?