hello~, what I am doing is like this:
def stopAnim():
now = pandaActor.getCurrentFrame('walk_a')
print now
pandaActor.stop()
#print pandaActor.getCurrentFrame('walk_a')
def playAnim():
pandaActor.loop("walk_a",restart = 0,fromFrame = 370, toFrame = 680)
The question is: When I ckick "“stop” at frame 430, the animation “looks stop”, but when i click "play"after 1 second, the animation play from frame 460, I mean the animation keep playing behind, is that normal?
But when I didn’t specify what frame to start or top, the strange situation didn’t show up:
def stopAnim():
now = pandaActor.getCurrentFrame('walk_a')
print now
pandaActor.stop()
#print pandaActor.getCurrentFrame('walk_a')
def playAnim():
pandaActor.loop("walk_a",restart = 0)
Could anyone tell me what was going wrong? Thanks.
My environmentis:
panda 1.5.3
ubuntu 7.10
eclipse 3.3.2
pydev 1.3.24