|
NewAnim | |
Anim = NewAnim(FrameSheet, [FrameRate]) | |
Parameters: FrameSheet = The Frame Sheet you wish to delete [FrameRate] = optional frame rate. Defaults to 1 |
|
Returns: Anim = The unique index of this animation |
|
The NewAnim function creates an animation using a selected frame sheet. New animations don't copy the frames (images) from the frame sheet though, rather they just holds the current frame, frame rate, animation type and direction of this particular animation. So animations are just a collection of custom properties for a particular frame sheet. This allows us to create many different animations that all use the same parent frame sheet. To create an animation we first need a frame sheet. Depending upon how your animation graphics are drawn, there's a few different solutions for the loading and creating the frame sheet. Generally though we'll be using LoadFrameSheet() function. Once we've loaded or created a frame sheet, then we can then create animations that use this sheet. For each unique animation our grame/demo needs we need to create a unique animation controller to handle it, using NewAnim. New animations default properties
FACTS: * Animations are only valid while the Frame Sheet they're associated with is valid. If the frame sheet is deleted, then the anim is no longer valid. |
|
Example Source: Download This Example
|
Related Info: | DeleteAnim | GetFrameSheetStatus | LoadFrameSheet : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |