Scaling GamePiece or even a 9 slice

Hello again :smiley:

I was just wondering if there was, say, a Trait for scaling/changing a game piece size on the fly (in-game)? Or even better, a 9 slice for arbitrary sizes.

If not, and I was going to code a custom Trait - would it be basically writing suitable draw() and bounding box() functions?

Thank you for your time :smiley:

Easy way to do it is with layers of different sizes, but it really depends on how you want to use the scaling, and how complex the piece is.

1 Like