Is there any API/method available to scroll map? I need to scroll the map by using mouse left click + drag. [see in FarmTown - we can scroll using left click + drag]
[Normally the map scrolls on avatar movements only]
I am using OpenSpace full version.
API/method to Scroll map
This is not available in the current version of OpenSpace. You can only center the view on a given tile, by passing its coordinates to the OpenSpace.centerViewOnTile
In the next release of OpenSpace you will have more control on the map panning (regardless of the avatar position) by means of a specific panView method, but still a live dragging as you are asking for will not be possible (because the OS engine needs to add and remove tiles to the stage while panning occurs).
In the next release of OpenSpace you will have more control on the map panning (regardless of the avatar position) by means of a specific panView method, but still a live dragging as you are asking for will not be possible (because the OS engine needs to add and remove tiles to the stage while panning occurs).
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
bax wrote:This is not available in the current version of OpenSpace. You can only center the view on a given tile, by passing its coordinates to the OpenSpace.centerViewOnTile
In the next release of OpenSpace you will have more control on the map panning (regardless of the avatar position) by means of a specific panView method, but still a live dragging as you are asking for will not be possible (because the OS engine needs to add and remove tiles to the stage while panning occurs).
Is there way to disable the add/remove tile while panning? I'm trying to implement the same feature, and the map I'm using is fairly small so I'm not worried about optimizing it, I just want to implement a smooth panning.
Return to “OpenSpace v1 discussions and help”
Who is online
Users browsing this forum: No registered users and 26 guests