Is ther anyway we could retrieve 2nd avatar (other user) position. any pseudo code perhaps?
i've added below.
Code: Select all
this.addEventListener(MouseEvent.CLICK, onClick);
public function set isMyAvatar(myAv:Boolean):void
{
_isMyAvatar = myAv
}
public function onClick(evt:MouseEvent):void
{
trace("clicked")
if(!_isMyAvatar)
{
trace("not my avatar")
}
}
public function onMovementStop(evt:AvatarEvent):void
{
var pemalarB:Object = detectTilePosition()
trace("My Position = (" + pemalarB.px +","+ pemalarB.py +")")
}
function detectTilePosition():Object
{
var myPost:Object = {}
myPost.px = evt["params"].tile.px;
myPost.py = evt["params"].tile.py;
myPost.pz = evt["params"].tile.pz;
return myPost
}
On myAvatar i could produce my coordinate... but not for other user Avatar.. Anything i've missed?
Thx in advance