Excalibur icon indicating copy to clipboard operation
Excalibur copied to clipboard

Documentation still refers to `graphics.show()`

Open ThatsJustCheesy opened this issue 7 months ago • 2 comments

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 avatar Jun 14 '25 17:06 ThatsJustCheesy

@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().

Image

Image

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().

eonarheim avatar Jun 16 '25 21:06 eonarheim

For doing multiple graphics composed together there are 2 approaches

  • GraphicsGroup
  • Child entity/actors

eonarheim avatar Jun 16 '25 21:06 eonarheim

@ThatsJustCheesy Updated the docs! the should deploy with the corrected prose momentarily!

eonarheim avatar Jun 25 '25 12:06 eonarheim