![]() |
Tiles script
[code]
if(tiles[playerx+1.5,playery+2]==1898){ [code] Ok my question is this, how do i translate the tileset into the number at the end, say if i wanted grass how would i know what to put? |
NPC Code: i believe the grass tile is 511 |
Quote:
|
I read somewhere awhile back how to do this.... can't remember any of it =/
-Jinx |
i know theres a simple way to find the tile number based on its place in the tiles by useing hex nums but i dont remember it
|
NPC Code: Lay a bunch of tiles out, and then open notepad :D |
When you move over a tile in the editor it
gives you the tile on the status bar on the lower right corner. It gives you a (x,y), to convert it to a tile number just do x+y*16, or in hex 0x[y as hex number][x as hex number] |
Oh so thats how lol
|
Quote:
so 15+31*16=511 or (15+31)*16=736 neither one works, with that tile command so am i doing somet wrong? |
Quote:
|
Quote:
all on the very bottom row.. |
Quote:
|
Quote:
Or you can just put "15+31*16" in as the tile value, that works also. |
Try using
NPC Code:when you change the tiles on the board... and you don't have to use hex.updateboard x,y,width,height; |
Quote:
Open a paint program that has a grid Each tile is 16x16, just look at the number and divide it by 16... I'm pretty sure that'll work. |
Quote:
you are all making it harder than it has to be |
Re: Tiles script
Quote:
i can explain this better over AIM ... i just learned how to properly do this too ... |
| All times are GMT +2. The time now is 02:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.