Avatar throws snowball at other avatar...

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

Moderators: Lapo, Bax

Post Reply
thg
Posts: 12
Joined: 13 Nov 2008, 09:37

Avatar throws snowball at other avatar...

Post by thg »

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?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

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:

Code: Select all

var myAvatar:MovieClip = os.myAvatarMovieClip
var globalCoords:Point = myAvatar.parent.localToGlobal(new Point(0,0))
Paolo Bax
The SmartFoxServer Team
Post Reply