|
|
| GetLevelWidth | ||
| Width = GetLevelWidth(MapIndex, LevelIndex) | ||
| Parameters: MapIndex = The Index of the Map you wish to query a level within LevelIndex = The index of the level you wish to query. |
||
| Returns: Width = Width of level in tiles |
||
The GetLevelWidth function will returns the width of a level in tiles. FACTS: * The returned value is in TILES not pixels. You can compute the number of pixels using the GetLevelAbsWidth & GetLevelAbsHeight functions. Mini Tutorial: This example shows how to first create a Map & Level, then displays the size information about this level.
This example would output.
|
| Related Info: | CreateLevel | GetLevelHeight | ResizeLevel : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |