changetile
The changetile command changes the visual of the block, based on the sprite sheet provided.



"then(changetile, tile x position, tile y position)"


Argument Function
tile x position The starting x position of the drawing area on the provided sprite sheet..
tile y position The starting y position of the drawing area on the provided sprite sheet..



And example of the changetile command used in a script is as follows...




The following script spawns the block with a random tile.


if(create)
{
then(initvar,rand)
then(changevar,rand,=,rand(0,3))
then(changetile,var,0)
}