MapAnimationEvent.ZOOM_END, MapAnimationEvent.ZOOM_START

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

Moderators: Lapo, Bax

laxersaz
Posts: 50
Joined: 30 Nov 2009, 16:19
Contact:

MapAnimationEvent.ZOOM_END, MapAnimationEvent.ZOOM_START

Postby laxersaz » 09 Feb 2010, 15:00

Are the MapAnimationEvent.ZOOM_END and MapAnimationEvent.ZOOM_START events already implemented in the beta 2 release? When I use the zooming, those events are never fired.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 09 Feb 2010, 20:51

Where did you find a reference to these events?
Paolo Bax
The SmartFoxServer Team
laxersaz
Posts: 50
Joined: 30 Nov 2009, 16:19
Contact:

Postby laxersaz » 10 Feb 2010, 09:10

Those are static constants inside the MapAnimationEvent class :shock:
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 10 Feb 2010, 09:36

Actually the MapAnimationEvent class is used internally by the OpenSpace engine only. The only members you should take care of are those exposed by the OpenSpace class, and the only events available are those you can see in the initializeOpenSpace method of the example's main.as file.
Paolo Bax
The SmartFoxServer Team
laxersaz
Posts: 50
Joined: 30 Nov 2009, 16:19
Contact:

Postby laxersaz » 10 Feb 2010, 10:28

Alright, thanks for making that clear.
I'll stick to the official methods then :wink:

It would be nice, though if those events could be exposed in order to be able to achieve a customized handling.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 10 Feb 2010, 13:46

Can you describe a use case scenario for those events?
Paolo Bax
The SmartFoxServer Team
laxersaz
Posts: 50
Joined: 30 Nov 2009, 16:19
Contact:

Postby laxersaz » 10 Feb 2010, 13:53

For example, if you want to zoom in on a building and trigger an animation or some kind of hint or dialog for the player as soon as the zooming stops.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 10 Feb 2010, 14:06

Usually zoom is quite fast. Anyway we will take this suggestion into account.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 23 guests