Click or drag to resize
SpriteBaseTileChange Method
Change tiles of the specified type that the sprite is touching to another tile (requires TouchTiles(TileCategoryName)).

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual int TileChange(
	int OldTileValue,
	int NewTileValue,
	bool InitialOnly
)

Parameters

OldTileValue
Type: SystemInt32
Index of the tile type to search for
NewTileValue
Type: SystemInt32
Which tile should these tiles be changed to
InitialOnly
Type: SystemBoolean
If true, only affect tiles that the player just started touching.

Return Value

Type: Int32
The number of tiles affected.
Remarks
This function changes all specified tiles at once. Use TileChangeTouched(Int32, Int32) to change only one tile.
See Also