Tile.walkable is read-only !?
Tile.walkable is read-only !?
While the doc says that the walkable property is read-write, I have a compiler error, when I try to change its value.
Is that a bug ?
Is that a bug ?
If you remove a skin manually, then you can't make the tile walkable. Also it would be impossible to persist that map change: on map reload you will still have that skin in that tile.
To remove a tile you have to enter "edit mode" (supposed you are using OpenSpace 2).
To remove a tile you have to enter "edit mode" (supposed you are using OpenSpace 2).
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Even if you could change the walkable property, nothing would change, as the OpenSpace extension should re-build the pathfinding nodes to make the avatar able to walk that tile.
I'm sorry but maybe OpenSpace has a different target than the game you are trying to make it fit.
I'm sorry but maybe OpenSpace has a different target than the game you are trying to make it fit.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
OpenSpace was not born to create any kind of game. The scope of this product has always been avatar chats. We are glad developers can find new ways of using it, but of course there are limitations.laxersaz wrote:Isn't there any way at all to alter anything on the map dynamically through api calls (not through manual changes during edit mode) and notify the OpenSpace extension about a map change? I think this is crucial for creating games of virtually any kind.
Making realtime map changes as you are asking for is not trivial, due to user interaction concurrency problems, server-side performance in continuous pathfinder nodes rebuilding, etc. We will do our best to improve OpenSpace, but this specific request can't be satisfied in the near future.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team