![]() |
Changing Tile
PHP Code:
Oh, just trying to replace a tile with a different tile, everywhere, for everyone, period. It will never change back. Layer issues, but if there is another way to fix the issue with using type 1 tilesets where it makes the bottom right tile def over everything else, which also makes it block, I would love to know. All it does is when it updates, it wont let you walk anymore on anything except the level you are on in gmap (thats all that has been tested). |
You'll need to uncomment the for loop so that it checks the tile value of each tile in the level. Besides that it looks fine.
|
I manipulate tiles using the hex numbers instead
so I usually do this.ctiles = {0xFFF,0xAE9}; then for (i = 0; i < 4096; i++){ if (tiles[i%64,int(i/64)] == this.ctiles[0]) tiles[i%64,int(i/64)] = this.ctiles[1]; } updateboard(0,0,64,64); Hope this clarifies things for you |
I had them uncommented and tested. I just forgot to put it back when I copied/pasted on here after trying something else.
Tricxta's use didn't work either. I really don't understand whey this isn't working. :/ Is this the only way to fix the issue with type 1 tilesets with layers showing the bottom right tile over everything and blocking the player? Also, any reason this wouldn't work or is there another route? |
If you have access to a different server try it on there as well. If that doesn't work remove the array variables and have if (tiles[i%64,int(i/64)] == 0xFFF) etc
|
I tried that as well and no go. I don't have access to any other server. :/
This blows if it can't work because that means we have no layers allowed... |
Found the issue on fixing layers and stuff, so I'm scrapping this for now, but I appreciate the help. :)
|
All times are GMT +2. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.