I currently have a character walking back and forth continuously. How can give the user the ability to do this by using the four keyboard arrow buttons. I haven’t been able to find anything about this in the Manual.
This the current code,
Create the four lerp intervals needed to walk back and forth
ralphPosInterval1= ralphActor.posInterval(13,Point3(0,-10,0), startPos=Point3(0,10,0))
ralphPosInterval2= ralphActor.posInterval(13,Point3(0,10,0), startPos=Point3(0,-10,0))
ralphHprInterval1= ralphActor.hprInterval(3,Point3(180,0,0), startHpr=Point3(0,0,0))
ralphHprInterval2= ralphActor.hprInterval(3,Point3(0,0,0), startHpr=Point3(180,0,0))
#Create and play the sequence that coordinates the intervals
ralphPace = Sequence(ralphPosInterval1, ralphHprInterval1,
ralphPosInterval2, ralphHprInterval2, name = "ralphPace")
ralphPace.loop()