[handle] = PlayAnim(id[, x, y, table])
id. Optionally you can specify the
ycoordinates 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
#FASTSPEED). New in Hollywood 4.5: You can specify the new
#DEFAULTSPEEDconstant 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.
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.
Asynchas been set to
PlayAnim(1)Play the animation 1.