need jump code

Non-platform specific questions.

need jump code

Postby pigz96 » Fri Jan 27, 2006 2:40 pm

i need jump to script editor. i mean no "fly jump code"

but now i use paths to jumping lol :lol: :lol: :lol:
pigz96
 
Posts: 15
Joined: Mon Jan 16, 2006 5:36 pm
Score: 0 Give a positive score

Postby Troodon » Fri Jan 27, 2006 9:12 pm

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?
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

.

Postby pigz96 » Fri Jan 27, 2006 11:38 pm

thanks. no. cuz when i jump towards to wall then my player goes throught of walls
pigz96
 
Posts: 15
Joined: Mon Jan 16, 2006 5:36 pm
Score: 0 Give a positive score

Postby Fuzzy » Sat Jan 28, 2006 2:33 am

You might be moving too fast for the collision detection to catch your jumper. increase the wall thickness, or slow the jump speed down.
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron