|
CopyLevel | ||
CopyLevel SrcMapIndex, SrcLevelIndex, X1, Y1, X2, Y2, DestMapIndex, DestLevelIndex, DestX, DestY | ||
Parameters: SrcMapIndex = The Index of the Src Map you wish to copy level data from SrcLevelIndex = The source index of the level you wish to copy from. 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 DestMapIndex = The Index of the Map you wish to copy the level data to DestLevelIndex = The destination index of the level you wish to copy to. DestX = The Dest X (top left) coord in the Dest level map DestY = The Dest Y (top left) coord in the Dest level map |
||
Returns: NONE | ||
CopyLevel copies a rectangular portion of the source level to another level. FACTS: * The region coords will be automatically clipped to the destination levels size. * CopyLevel does not support coping of overlapping regions (within the same level) Mini Tutorial: This example shows how to first create a Map and Level. Then while displaying the the level the mouse position (much like a sprite) it uses CopyLevel to transfer the top left section of the level to the bottom right section of the level.
This example would output.
|
Related Info: | ClearLevel | CloneLevel | CreateLevel | FillLevel | PeekLevelTile | PokeLevelTile | ResizeLevel : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |