Chapter 7. Working with Update Handlers
Update handlers give us a way to run specific portions of code every time that the engine updates. Some game engines have one built in as a main loop, but with AndEngine we can create as many of these loops as necessary with ease. This chapter will cover the following recipes:
Getting started with update handlers
Attaching an update handler to an entity
Using update handlers with conditionals
Handling the removal of an entity from the game
Adding game timers
Setting entity properties based on the time passed