Hey all I would like a bit of help setting up my jumping using DP and the character controller displacement method. I have it jumping fine however if the player holds down the spacebar they jsut keep going upwards, so some kind of timer is needed to make it only work for 1/2 a second or so. I tried using timer() and all I would get is a small jump or no jump depending on the value I comapred it with.....
Here is the code for the jump without any timer:
if spacekey() = 1
key = 1
phy set character controller displacement player_object, 200.0,-200
phy move character controller player_object, -1.0 `jumping gravity
else
phy move character controller player_object, 1.0 `normal gravity
endif
Thanks in advance for any help.