http://www.pasteall.org/blend/789 3MB
The first time i start walking, it goes weel, but when a release the key and then re-press it or press another key, it starts moving strangely
Walk with the arrows
http://www.pasteall.org/blend/789 3MB
The first time i start walking, it goes weel, but when a release the key and then re-press it or press another key, it starts moving strangely
Walk with the arrows
Once you activate an actuator with python, it stays activated until you deactivate it.
You have to deactivate stop before you can move again.
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# The Player is not moving
if move_state==0:
# Activate stop_y
GameLogic.addActiveActuator(stop_y, 1)
# deactivate moves
GameLogic.addActiveActuator(moves, 0)
# Don't track to empty
GameLogic.addActiveActuator(direction, False)
# The Player is moving
else:
# Activate moves
GameLogic.addActiveActuator(moves, 1)
# deactivate stop
GameLogic.addActiveActuator(stop_y, 0)
# Track to empty
GameLogic.addActiveActuator(direction, True)
Edit: Its funny seeing mancandy in a game, let us know how it turns out.
Thanks. :DDDDD