hello~,now what I know is:
class Move(DirectObject.DirectObject):
def __init__(self):
self.accept('arrow_up', self.forward)
self.accept('arrow_up-repeat', self.forward)
def forward(self):
pandaActor.setY(pandaActor.getY() + 10)
h = Move()
But the thing like “jump” to the position in next frame.
Is there a build-in way to move things more smoothly, or “slide” thing to another position?
I read some example looks like what I want, but they looks like using some “Task” or “interval” way.
Any suggestion? Thanks!