Quote:
Originally Posted by Jakov_the_Jakovasaur
temp.playerTiletype = tiles[player.x + 1.5, player.y + 2]; is just defining a temporary variable as whatever is returned by tiles[player.x + 1.5, player.y + 2], which will be unset once the current function process ends
all you need to do is:
PHP Code:
if (tiles[player.x + 1.5, player.y + 2] == 1x1) {
player.chat = "Found Tile!";
}
|
error: unexpected symbol x1 at line 68: if (tiles[player.x + 1.5, player.y + 2] == 1x1) {
Don't think the check you gave me is correct..