Page 1 of 1
need jump code
Posted:
Fri Jan 27, 2006 2:40 pm
by pigz96
i need jump to script editor. i mean no "fly jump code"
but now i use paths to jumping lol
Posted:
Fri Jan 27, 2006 9:12 pm
by Troodon
Make a variable and put it's value to 1 in beginning. Write that the actor can jump only when the variable's value is 1. When pressing [jump key] the variable's value must change to 0 and return to 1 when the actor retouchs the ground.
Now the actor must return to the ground before rejumping and it can't fly. I hope this helped you. (I'm not very good english speaker)
By the way: Are the paths good for jumping?
.
Posted:
Fri Jan 27, 2006 11:38 pm
by pigz96
thanks. no. cuz when i jump towards to wall then my player goes throught of walls
Posted:
Sat Jan 28, 2006 2:33 am
by Fuzzy
You might be moving too fast for the collision detection to catch your jumper. increase the wall thickness, or slow the jump speed down.