Summary

In this chapter we have learned how to manipulate Actor objects using the Actions class. We discussed and used several complex chains of actions in Canyon Bunny's menu screen which greatly demonstrate the power and flexibility of actions. Furthermore, we now know that the Interpolation class can also be used with those actions for added effects.

Apart from that, we have covered the Animation class and used the texture packer's support for packing animation frames which makes it easier to handle in the code. In addition to this, we have learned about the different play modes provided by the Animation class. Finally, we have implemented a state machine that is able to handle all events to trigger the right bunny head animations at the right ...

Get Learning Libgdx Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.