onTileRollover
Posted: 13 May 2009, 16:07
I have a problem that seems very basic.....
Here is what I want to happen:
* rollover a tile
* have a skin on that tile change states and visually show something onRollOver
* click on that tile
* have the npc walk to the tile.
issues:
* the npc can navigate to the tile when walkable, but the onRollOver states of the skin do not function (because of the openspace 'sensor' placed on walkable tiles)
* when setting the tile's parameter, skinsOnTop to 1, the rollOver states work, but the TILE_SELECTED event is not fired, thus no walking to the tile (because the 'sensor' is being obscured by the skinsOnTop parameter)
[NOTE: isWalkable is still set to true]
This seems like basically functionality many users would want to put in their game, so I am inclined to think that I am simply overlooking a setting in openspace.
Any ideas on how to accomplish this task?
Thanks.
Here is what I want to happen:
* rollover a tile
* have a skin on that tile change states and visually show something onRollOver
* click on that tile
* have the npc walk to the tile.
issues:
* the npc can navigate to the tile when walkable, but the onRollOver states of the skin do not function (because of the openspace 'sensor' placed on walkable tiles)
* when setting the tile's parameter, skinsOnTop to 1, the rollOver states work, but the TILE_SELECTED event is not fired, thus no walking to the tile (because the 'sensor' is being obscured by the skinsOnTop parameter)
[NOTE: isWalkable is still set to true]
This seems like basically functionality many users would want to put in their game, so I am inclined to think that I am simply overlooking a setting in openspace.
Any ideas on how to accomplish this task?
Thanks.