PDA

View Full Version : Help


oscar
01-21-2005, 01:18 PM
HI,
I`m trying to move a simple ball after that I`ll change the size of the object, But I need that this two events happen one by one, not the both at the same time.

Can Any body help me ?

farshizzo
01-21-2005, 01:25 PM
Hi,

Do you want to animate the ball moving and then animate it changing size?

oscar
01-21-2005, 01:42 PM
I`ll like to animate the ball with tha goto function, and when the ball finish, chage the size of it.

farshizzo
01-21-2005, 02:35 PM
If you have vizard 2.5 you could do something similar to the following:move = vizact.goto(0,0,5,1)
changeSize = vizact.scale_node(3,3,3)
ball.add(move)
ball.add(changeSize)If you have an earlier version of vizard then you would have to use callbacks:def ballStop(object,type):
if type == viz.MOVE:
ball.scale(3,3,3)

ball.callback(viz.STOP_EVENT,ballStop)

ball.goto(0,0,5,1)