KuJi said:
PHP Code:
Read Tile Objects / New World tiles.
Each tile consists of two letters. For our example we will use "J4"
which is the black tile (0x278 or 632)
function onCreated()
{
// Read Tile Objects format ex.
temp.read = {"J", "4"}; // each tile consists of two letters
temp.b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
temp.tile = (temp.b64.pos(temp.read[0]) << 6) + (temp.b64.pos(temp.read[1]));
echo("Tile: " @ temp.tile @ " - " @ 0x278);
}
Also... "Bucket-Filling" is known as "Flood-Filling". You can find such by having a pathfinder where the edge-cost is 0, and you want all possible vertex that can be reached.