![]() |
board update help
I almost have this down,
its purpose: to hit bushes just like a sword does. Problems: >the bush does not grow back (online) >the update of the board overwrites the tiles surrounding the board- such as if the bush is near part of a tree, it may take a chunk of tree out to put the removed-bush tile. HTML Code:
//#CLIENTSIDE |
Check that the whole bush is there, not just part.
Also, changing tiles will only show for you, not others. You have to do it on the serverside to make the bush look cut to other players. It's not a good idea to ask for help on fixing scripts you didn't make, since the responses will only confuse you. That's definately taken from part of the Shovel NPC. |
thanks for the help.
The reponse does not confuse me, it makes sense. And of course it is taken from the shovel npc, as that was the only example of modifying the board tiles that I could find. Show me any substantial computer programming function that you did not learn by seeing an example of that code to work from. |
Mostly all of them.
Use tiles[x,y] instead of board[x,y] |
Quote:
|
Are you sure? I had to send it to the serverside for the default grass. :/
|
Quote:
|
This was when I had to use v3 :(
|
Quote:
|
Prozac, better do putx = int(putx) and puty = int(puty) otherwise you might update the wrong tiles
|
| All times are GMT +2. The time now is 08:57 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.