|
PasteLevel | ||
PasteLevel SrcMapIndex, SrcLevelIndex, DestMapIndex, DestLevelIndex, DestX, DestY, TransparentBlock | ||
Parameters: SrcMapIndex = The Index of the Src Map you wish to paste level data from SrcLevelIndex = The source index of the level you wish to paste DestMapIndex = The Index of the Map you wish to paste level data to DestLevelIndex = The destination index of the level you wish to paste 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 TransparentBlock = The block index you wish exclude. |
||
Returns: NONE | ||
PasteLevel will copy/paste level tile data onto another level. The copy will paste the source level much like as if it was a sprite. Mode Values: 0 = Copy as is 1 = Transparent Copy FACTS: * The pasted region will be automatically clipped to the destination levels 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 PasteLevel to copy the source level data onto another level and display with.
This example would output.
|
Related Info: | ClearLevel | CloneLevel | CopyLevel | CreateLevel | FillLevel | PeekLevelTile | PokeLevelTile | ResizeLevel : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |