PlayModeOverSensor doesn't work

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
ffourcad
Posts: 130
Joined: 25 Feb 2010, 10:26

PlayModeOverSensor doesn't work

Post by ffourcad »

Hello,

I would like to put the tile below my pointer into relief, so I thought I could use the PlayModeOverSensor parameter of the openSpace_client.xml file, but it doesn't seem to work when another avatar is above the tile.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

We tested it, and it works... unless the other avatar already on that tile "covers" the tile. If you are using bitmap avatars, make sure you don't have transparent pixels around the avatar, because those catch the mouse events too.
Paolo Bax
The SmartFoxServer Team
ffourcad
Posts: 130
Joined: 25 Feb 2010, 10:26

Post by ffourcad »

No, my avatar is plain vector graphic, and when the avatar moves through the tile I am pointing, it makes the tile go from the RollOver state (when the avatar is not under the pointer), then RollOut (when the avatar is under the pointer), to RollOver state again (when the avatar is gone). So the tile is flickering, and it's a bit weird. I would like the tile to remain in the rollOver state, even if the avatar passes under the mouse pointer.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This is not possible as the avatar intercepts the mouse cursor, causing the rollout event to be fired by the underlying movieclips.
Paolo Bax
The SmartFoxServer Team
Post Reply