I do something similar to this:
PHP Code:
// INCOMPLETE CODE \\
this.tile = tiletype(player.x + 0.5, player.y);
this.tile2 = tiletype(player.x + 1.5, player.y);
if (this.tile == 3 && this.tile2 == 3) {
setani("sit", NULL);
} elseif (this.tile == 4 && this.tile2 == 4) {
setani("sleep", NULL);
}
I don't know all the tiletypes by heart, go test them out. mk
