Game Development Reference
In-Depth Information
How it works...
All the actions we have discussed earlier will be working in the same flow. Here is the ba-
sic anatomy of all actions, which we apply on sprites:
• Decide the actions we want to apply, in what sequence they are to be executed, and
whether some action needs to be repeated or not.
• For each action, whatever the type is, specify its respective parameters and the
time duration for it.
• After finalizing the action, just call runAction on the sprite to be animated with
the action constructed.
Search WWH ::




Custom Search