Game Development Reference
In-Depth Information
•
show()
: This sets the visibility of an actor to
true
•
sizeBy()
and
sizeTo()
: These resize an actor by a relative amount or to
a specific size
•
touchable()
: This sets the touchability of an actor (refer to the
touchable enumerator)
•
visible()
: This sets the visibility of an actor
Controlling the order and time of execution
The following list describes actions that are useful for controlling the order and time
of execution of other actions:
•
after()
: This waits for other actions of an actor to finish before its action
is executed (note that this action will only wait for other actions that were
already added to an actor prior to this)
•
delay()
: This delays the execution of an action
•
forever()
: This repeats an action forever
•
parallel()
: This executes a list of actions at the same time
•
repeat()
: This repeats an action for a given number of times
•
sequence()
: This executes a list of actions one after another
Animating the menu screen
Let's now discuss what we are actually going to animate in the menu screen.
Basically, the first two bits of our animated menu involve the gold coins and the
large bunny head.