[handle] = PlayAnim(id[, x, y, table])
id
.
Optionally you can specify the x
and y
coordinates on the screen where
the animation should be displayed.
If layers are enabled, this command will add a new layer of the type
#ANIM
to the layer stack.
As of Hollywood 4.0, PlayAnim()
accepts an additional optional table
argument which can be used to configure several further playback
options:
Speed:
#SLOWSPEED
, #NORMALSPEED
or
#FASTSPEED
). New in Hollywood 4.5: You can specify the new
#DEFAULTSPEED
constant here. If you use #DEFAULTSPEED
, Hollywood
will use the speed as defined in the animation file. Note that
not all animations define such a speed but if they do, it should
be respected because otherwise the playback looks wrong.
Times:
Async:
True
here PlayAnim()
will exit
immediately, returning a handle to an asynchronous draw object
which you can then draw using AsyncDrawFrame().
See AsyncDrawFrame for more information on asynchronous draw objects.
Async
has been set to True
(see above)PlayAnim(1)Play the animation 1.