Documentation still refers to `graphics.show()`
Hi,
Currently, some documentation pages still refer to graphics.show(), which was apparently recently removed.
Tangential question: The docs pages recommend assigning names to different graphics to easily swap between them. With show() gone, what is the recommended way to swap an actor between graphic states?
Thanks!
@ThatsJustCheesy howdy! Good find, you are correct that was recently removed!
Calling .use('some-graphic') with a string key that you added with .add('some-graphic', myGfxInstance) should work the same way as you did before with show().
The big thing that was removed with show() was the ability to do multiple graphics instances at once in an actor, after that it was no different than use().
For doing multiple graphics composed together there are 2 approaches
-
GraphicsGroup - Child entity/actors
@ThatsJustCheesy Updated the docs! the should deploy with the corrected prose momentarily!