Avatar throws snowball at other avatar...
Is this possible? I could have the snowball on top of the whole openspace, but I would still need to access the global coordinates of the avatar to make the snowball take of from the right position. Is this doable?
Avatar throws snowball at other avatar...
Not sure this can be done. OpenSpace doesn't handle "bullets" moving on the map, colliding with other avatars or map items, etc.
If you just need to know the global coordinates of your avatar, you can do something like this:
If you just need to know the global coordinates of your avatar, you can do something like this:
Code: Select all
var myAvatar:MovieClip = os.myAvatarMovieClip
var globalCoords:Point = myAvatar.parent.localToGlobal(new Point(0,0))
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team