Page 1 of 1
NPC animationTime
Posted: 01 Apr 2010, 15:55
by ffourcad
Hello,
I'd like to know if it's possible to change NPC's animationTime, in order to increase or decrease npc movement speed ?
I changed avatar.currentAnimTime, but it doesn't seem to really change.
Posted: 01 Apr 2010, 23:28
by Bax
The avatar speed is saved in a User Variable. If you change that variable for the NPC user, you will change its speed on the client-side.
I think we will have to add a document describing all the User Variables involved in OpenSpace, so you know what you have to set when creating an NPC user.
Posted: 02 Apr 2010, 07:44
by ffourcad
That would be great ! Thank you
Posted: 07 Apr 2010, 09:07
by ffourcad
I'd really like to know the name of the UserVariable that controls the avatar animation Speed.
Thank you.
Posted: 08 Apr 2010, 03:12
by cyli
I set "_os_aTime" to change the movement speed. The higher the number, the slower the avatar moves across the map, but I'm not sure what exactly that represents (milliseconds to move across one tile maybe?). 800-1500 makes my avatar move across my map at a fairly reasonable speed.
Posted: 08 Apr 2010, 07:40
by ffourcad
ok, thanks, I'll give it a try.
Posted: 12 Apr 2010, 16:50
by Bax
Yes, as cyli said _os_aTime is the "animation time" variable: it is the duration in milliseconds of the avatar movement from tile to tile along N/E/S/W directions. This parameter is used by OpenSpace to set the avatar speed when moving on the map. A correction is applied automatically for the other directions.