GetTileImage

From Spheriki

Jump to: navigation, search

GetTileImage() returns an image object of a tile. You can then do whatever you like with it.


Usage

function GetTileImage(tile_number);
  • tile_number Enter the number of the tile you want an image of here.


Examples

var SomeTile = GetTileImage(1);
SomeTile.blit(10, 10);
FlipScreen();
GetKey();

Puts the image of tile 1 (the second tile) in the variable SomeTile and draws it on an empty screen until a key was pressed.


See also

Personal tools