|
MapAnimQuantity | ||
MapAnimQuantity MapIndex, NumbOfAnims | ||
Parameters: MapIndex = The Index Identifier of the Map that you wish to create. NumbOfAnims = The Number of levels you like to setup within this map |
||
Returns: NONE | ||
MapAnimQuantity lets you expand or contract the number of Block Animations a map currently has provision for. The command is sensitive to the any existing data, allowing you to expand the block animations table without lose. Of course, if you shrink the table, then care should be taken to ensure your not deleting Animations you need. [ What Are Block Animations ? ] Block animations are basically arrays of blocks. These arrays, collections can contain arrange in any sequence of block indexes you wish. To use them in a level, we poke the animation index into the level. Once a tile in the level is set to animation rather than just a normal block index, the DrawMap command will automatically calculate that block to be display from this animation sequence. Animations are updated using the UpdateMapAnims command. This command will update all the map animations that current active at once. This ensure they stay in perfect synchronization with each other. It should be noted though that animations are only valid for the map their attached too. FACTS: * When shrinking the number of tile animations, MapAnimQuantity will delete all the tile animation data associated with those removed animations. Mini Tutorial: This example will create a map with provision for 10 levels and 50 animations. It builds one animation and level and the displays this elvel at the mouses position.
This example would output.
|
Related Info: | CreateMap | CreateMapAnim | GetMapAnimSize | GetMapAnimStatus | GetMapAnimType | UpdateMapAnims : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |