This tutorial make a Jump, Double Jump, and More Jump
First, u make one actor name player and add animation or some script (Walk left and Right)
And make one actor name Tiles or something to make flatform and add animation
Or Download here
Next, Goto Player -> Key Down -> Script Editor
But first, u need add new var. name "canjump"
and use this code
- Code: Select all
if(canjump>0)
{
yvelocity-=6;
canjump--;
}
The Number (6) is a High/Low Jump
Next, Add to Player -> Collision -> Any Side Tiles (Re.Colliding Yes) -> Physical Respone : 1, 1, 0, 1
and then add to Player -> Collision ->Top Side Tiles (Re.Colliding Yes) -> Script Editor
- Code: Select all
canjump=1;
This a code 1 Jump
To change the Jump (to Double Jump or More Jump)
Change the Number of canjump=...... (if number is 2, Double Jump, if 2 or better, More Jump)
Thank for Read
Wertyboy