how can i do it?
how do Avatar act with anything that not avatar?
how do Avatar act with anything that not avatar?
i put some building that is a tails. and i want my avatar act with it,
how can i do it?
how can i do it?
The avatar speed can be set in the OpenSpace xml configuration file. Please check this document ("Avatars" section, "animTime" parameter).then, i have another question, how can i set avator moving speed?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
I need to make such thing, as when user clicks on object with which it can interact, than avatar will move to the nearest tile and than object will be activated. So I need to get all such objects and be able to direct user's avatar to assigned tile. Getting tile on whcih object located is not the high priority. I can associate tile in another way. But I want to get list of map objects.
The problem I see is that the you have no way to know on which tile you have to send the avatar when a certain object is clicked, unless you parse the map on your side.
I would suggest that you save additional data for the map, like object name -> destination coordinates. When the map is rendered add your click listeners to the map objects and when the event is fired retrieve the associated coordinates and call the moveMyAvatar method.
I would suggest that you save additional data for the map, like object name -> destination coordinates. When the map is rendered add your click listeners to the map objects and when the event is fired retrieve the associated coordinates and call the moveMyAvatar method.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team