I have a question that I hope as a quick and simple answer. I have a .blend file that has a player navigating through an environment. All movement comes from f-curves, which are played by activating the actuator using a python script (see example below.) My problem is that when the player is already moving, another key press starts the movement over. I need the script to disregard any input until the player is done moving (or until actuator finishes playing the f-curve.) Any guidance on how to accomplish this?
import bge from bge import logic cont = logic.getCurrentController() own = cont.owner play_curve = cont.actuators['moveForward'] play_curve.mode = bge.logic.KX_IPOACT_PLAY #Play mode #This function will play the move forward f-curve def moveForward(): play_curve.frameStart = 665 play_curve.frameEnd = 840 cont.activate(play_curve) #TODO: Remove this print statement. Used for testing. print("moveForward Logged Successfully")