Change Avatar

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

Moderators: Lapo, Bax

Post Reply
nukerito
Posts: 3
Joined: 31 Aug 2009, 16:34

Change Avatar

Post by nukerito »

Hello, I've a problem.. I need to change the avatar in OpenSpace..

1st- I already have an avatar creation section.. where the user changes eyes, clothing, hair, etc) and get a MovieClip with that avatar.. in that avatar movieclip I have the actions.. if i want the avatar to walk I do this : avatar.gotoAndPlay("walk");

Now.. in Openspace I see this line of code: os.createMyAvatar("dummy", null, initialSkin)

I'm trying to find that function (because I supose that in that function there is a caller to the avatar that comes by default in openspace ) and there I can simply change that and put my avatar movieclip

Questions:
-Is it posible to change the avatar?
-Is that the correct way to do that?
-Where is the function "createmyavatar"? because I search and search and I can't find it

PD: sorry for my bad english

Thank you
nukerito
Posts: 3
Joined: 31 Aug 2009, 16:34

help

Post by nukerito »

please help me.. at least tell me if it's posible to do it?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This is not the right way to customize your avatar. You can't simply pass a movieclip to OpenSpace (otherwise it would be impossible to replicate it on the other connected clients).
Check the API documentation of the OpenSpace.createMyAvatar method. Also make sure you read the class description of the IAvatarMovieClip interface.
Paolo Bax
The SmartFoxServer Team
Post Reply