Hi,
I want to fix the map in the window, that means if the avatar approch the side, the map will not scroll.
How can we do?
Tks.
How to fix the map
No sorry, currently there's no way to inhibit scrolling.
The options you have are:
1. make the map smaller than the viewport;
2. in the xml configuration file set the <ScrollSensorSize> parameter to 100 and do something like this on the map (also, make the avatar appear in the center of the map):

The options you have are:
1. make the map smaller than the viewport;
2. in the xml configuration file set the <ScrollSensorSize> parameter to 100 and do something like this on the map (also, make the avatar appear in the center of the map):

Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
bax wrote:No sorry, currently there's no way to inhibit scrolling.
The options you have are:
1. make the map smaller than the viewport;
2. in the xml configuration file set the <ScrollSensorSize> parameter to 100 and do something like this on the map (also, make the avatar appear in the center of the map):
Must be a way to not have to make the avatar appear in the center and still have the viewport like in the picture? Think of a map with the background of a single room, would you want the avatar to appear in the center of the room instead from a door?