how to display the avatar 's location of whole map?

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

Moderators: Lapo, Bax

Post Reply
huhailong
Posts: 28
Joined: 14 May 2010, 04:39

how to display the avatar 's location of whole map?

Post by huhailong »

how to display the avatar 's location of whole map on openspace ?
because my map is large, screen only display a small part of the map.
i want to avatar know current location of whole map.
need display a thumbnail on screen and label the avatar 's current location of whole map.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Are you talking about a sort of minimap with avatar positions?
If yes, you will need to take a screenshot of the map (you can do this in the OpenSpace Editor) then create your own logic to read the avatar coordinates with respect to the map container, and convert the coordinates to display the avatar position on the minimap.

This is briefly the approach I would take, but maybe other forum users have a different approach to suggest.
Paolo Bax
The SmartFoxServer Team
huhailong
Posts: 28
Joined: 14 May 2010, 04:39

Post by huhailong »

can i make a java applet to do the screenshot of the map ?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

I don't get how a java applet can take a screenshot of a map which is inside a Flash component, and not completely visible too.
Paolo Bax
The SmartFoxServer Team
Post Reply