Hi,
I am trying to use the tile.addSkin() method but am getting the following error when it is called:
1195: Attempted access of inaccessible method addSkin through a reference with static type com.smartfoxserver.openspace.shared.view.items:Tile.
Can I add skins to tiles like this?
thanks
tile.addSkin() Help
Okay...
Is there anyway I can add a display object tot a tile dynamically? I am trying to add some arrows to show the map exits.
I have tried to use the addChild method but I get the following error when I interact with it (ROLLOVER) etc
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace.shared.control.map::MapManager/getTileInstanceData()
Is there anyway I can add a display object tot a tile dynamically? I am trying to add some arrows to show the map exits.
I have tried to use the addChild method but I get the following error when I interact with it (ROLLOVER) etc
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace.shared.control.map::MapManager/getTileInstanceData()
I have setup a database table to store the location and data of individual exits.
My table contains the coordinate of the exit, the map to load when when the exit is taken and a coordinate for the spawn point when the new map loads.
In the onOpenSpaceMapRendered() method I want to retrieve all the exits for the room I am in and add an arrow to show where the exits are.
Is there a way I can add the arrows to the tile dynamically (through code) rather than having to add them in openspace editor?
When I use tile.addChild(arrow); I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace.shared.control.map::MapManager/getTileInstanceData()
Any ideas??
Thanks
My table contains the coordinate of the exit, the map to load when when the exit is taken and a coordinate for the spawn point when the new map loads.
In the onOpenSpaceMapRendered() method I want to retrieve all the exits for the room I am in and add an arrow to show where the exits are.
Is there a way I can add the arrows to the tile dynamically (through code) rather than having to add them in openspace editor?
When I use tile.addChild(arrow); I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace.shared.control.map::MapManager/getTileInstanceData()
Any ideas??
Thanks
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 32 guests