|
|
| GetLevelTile | ||
| BlockIndex = GetLevelTile(MapIndex, LevelIndex, Xpos, Ypos) | ||
| Parameters: MapIndex = The index of the map you wish to query a level within LevelIndex = The index of the level you wish to check Xpos = The X position (in pixels) of where to check Ypos = The Y position (in pixels) of where to check |
||
| Returns: BlockIndex = The index of the block that is under this point |
||
The GetLevelTile function returns the Block or Animation Index from a level that a point is over. The test points position is in pixels, not tiles. FACTS: * GetLevelTile expects the point your checking to be in the levels space. If not, it'll return a illegal tile index runtime error. Mini Tutorial: This example creates an map and level, then uses the GetLevelTile to detect what block index is under the mouse pointer.
This example would output.
|
| Related Info: | GetLevelABSHeight | GetLevelABSWidth | GetMapBlockHeight | GetMapBlockWidth | PeekLevelTile : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |