Game Development Community

Animation Thread setPos

by Wang Guojing · in General Discussion · 11/14/2007 (8:51 pm) · 1 replies

Ive been trying to to make a function that plays the animation only in a certain area of the animation, like playthreadarea(0,"open",0.5,1.0) would play the open animation from half to finish, it works fine when i apply the code+my edits to a clientsidetsstatic object, but once i try todo it on a networked shapebase, it doesn't, it merely plays the animation like normal for the period of time it would todo the area you specify.
I used the function "mShapeInstance->setPos(mythread,myvariable)" to set the pos,and it acturely changed
when I Debug the proccess.However,my animation played like normal.
If anyone sees anything I am missing, or has any other suggestions I would appreciate some responses.

#1
11/21/2007 (9:03 am)
You might need to send the position across the network. I believe that networked objects always start from the beginning of the animation. You'll want to set that up in pack/unpackUpdate *before* the test to see if it's a controlled object (i.e., you're in control of the player and not in the free camera or the like, or it's a networked player).