Every now and then people refer to the
original thread where I posted the first version of the module, and I haven't received any more bug reports so I guess it's time I release it officially.
This script module is intended to make it easy to animate inventory items.
It provides the following functions:
InvItemAnimation.Start(InventoryItem *theinvitem, int view, int loop, int delay, optional RepeatStyle repeat) Starts animating the inventory item using the specified view loop.
Example: InvItemAnimation.Start(iTorch, TORCHVIEW, 0, 10, eRepeat);
InvItemAnimation.Stop(InventoryItem *theinvitem, optional bool keepcurrentframe) Stops the inventory item animation.
Example: InvItemAnimation.Stop(iTorch, false);
InvItemAnimation.IsPlaying(InventoryItem *theinvitem) Returns "true" if the inventory item is being animated, "false" if it is not currently being animated.
Example: if (InvItemAnimation.IsPlaying(iTorch) == true) Display("The torch is lit.");
InvItemAnimation.PauseAll() Pauses all inventory item animations.
InvItemAnimation.ResumeAll() Resumes all inventory item animations.
Check the included documentation for details.
Download hereChangelogVersion 0.91 (2006-04-18)
* Added .PauseAll and .ResumeAll functions
* Updated to work with AGS v2.72 in "strict" mode
Version 0.90b (2005-10-03)
* Fixed to work with popup modal GUIs
Version 0.90 (2005-10-02)
* First public release