Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   tilelayers and tiletypes (https://forums.graalonline.com/forums/showthread.php?t=134260466)

MrOmega 09-07-2010 05:20 PM

tilelayers and tiletypes
 
Is there anyway to read what the tile type is for a layer, cause currently I can only read layer 0, I've tried a few things but nothing seems to work.

Tigairius 09-07-2010 08:04 PM

The tile type of a layer? You mean the tile type of a tile on a different layer?
You'd do this:
PHP Code:

level.tilelayers[layer].tiletype(xy


DustyPorViva 09-07-2010 08:13 PM

Quote:

Originally Posted by Tigairius (Post 1599488)
The tile type of a layer? You mean the tile type of a tile on a different layer?
You'd do this:
PHP Code:

level.tilelayers[layer].tiletype(xy


I don't think they work, sadly :/ Nor does onwall and such either. Pretty sure the only thing you can do is:
level.tilelayers[layer].tiles[x,y]
Unless it was fixed in v6.

MrOmega 09-07-2010 08:40 PM

Quote:

Originally Posted by Tigairius (Post 1599488)
The tile type of a layer? You mean the tile type of a tile on a different layer?
You'd do this:
PHP Code:

level.tilelayers[layer].tiletype(xy


That doesn't work :/ it's like missing, cause player.level.tiletype(x,y) works but with the added tile layers it doesnt.

Tigairius 09-07-2010 08:45 PM

Weird. I'll add this to the v6 thread.


All times are GMT +2. The time now is 12:30 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.