|
FillLevel | ||
FillLevel MapIndex, LevelIndex, X1, Y1, X2, Y2, TileIndex | ||
Parameters: MapIndex = The Index Identifier of the Map you wish to alter a level within. LevelIndex = The index of the level you wish to fill. X1 = The Starting X (top left) coord in the level map Y1 = The Starting Y (top left) coord in the level map X2 = The Ending X (bottom right) coord in the level map Y2 = The Ending Y (bottom right) coord in the level map TileIndex = The Index of the Gfx tile that your wish to fill this level with |
||
Returns: NONE | ||
FillLevel lets the user fill a rectangular portion of a level with a particular tile. You can think of this line drawn a box of tiles onto a level. FACTS: * The region coords will be automatically clipped to the level size. Mini Tutorial: This example shows how to first create a Map & Level. Then while displaying the the level the mouse position (much like a sprite) it uses FillLevel to randomly change a region of Tiles witin this level.
This example would output.
|
Related Info: | ClearLevel | PeekLevelTile | PokeLevelTile | ResizeLevel : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |