Jump animation

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€59.75
List Price:  €85.36
You save:  €25.61
£51.68
List Price:  £73.83
You save:  £22.15
CA$96.92
List Price:  CA$138.47
You save:  CA$41.54
A$105.91
List Price:  A$151.31
You save:  A$45.39
S$89.78
List Price:  S$128.26
You save:  S$38.48
HK$545.17
List Price:  HK$778.85
You save:  HK$233.68
CHF 55.77
List Price:  CHF 79.67
You save:  CHF 23.90
NOK kr694.58
List Price:  NOK kr992.30
You save:  NOK kr297.72
DKK kr446.08
List Price:  DKK kr637.29
You save:  DKK kr191.20
NZ$117.67
List Price:  NZ$168.10
You save:  NZ$50.43
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,518.66
List Price:  ৳12,170.03
You save:  ৳3,651.37
₹6,165.60
List Price:  ₹8,808.38
You save:  ₹2,642.78
RM295.32
List Price:  RM421.90
You save:  RM126.58
₦105,831.17
List Price:  ₦151,193.87
You save:  ₦45,362.70
₨19,761.52
List Price:  ₨28,231.96
You save:  ₨8,470.43
฿2,224.84
List Price:  ฿3,178.48
You save:  ฿953.64
₺2,889.48
List Price:  ₺4,128
You save:  ₺1,238.52
B$380.26
List Price:  B$543.26
You save:  B$162.99
R1,228.49
List Price:  R1,755.07
You save:  R526.57
Лв116.96
List Price:  Лв167.10
You save:  Лв50.13
₩97,178.82
List Price:  ₩138,832.84
You save:  ₩41,654.02
₪233.44
List Price:  ₪333.50
You save:  ₪100.06
₱3,995.27
List Price:  ₱5,707.77
You save:  ₱1,712.50
¥10,318.34
List Price:  ¥14,741.11
You save:  ¥4,422.77
MX$1,304.34
List Price:  MX$1,863.42
You save:  MX$559.08
QR254.88
List Price:  QR364.13
You save:  QR109.25
P938.10
List Price:  P1,340.20
You save:  P402.10
KSh9,039.20
List Price:  KSh12,913.70
You save:  KSh3,874.50
E£3,372.81
List Price:  E£4,818.50
You save:  E£1,445.69
ብር10,030.16
List Price:  ብር14,329.41
You save:  ብር4,299.25
Kz63,827.73
List Price:  Kz91,186.39
You save:  Kz27,358.65
CLP$67,692.22
List Price:  CLP$96,707.32
You save:  CLP$29,015.10
CN¥498.41
List Price:  CN¥712.05
You save:  CN¥213.63
RD$4,453.08
List Price:  RD$6,361.82
You save:  RD$1,908.73
DA9,089.53
List Price:  DA12,985.60
You save:  DA3,896.07
FJ$159
List Price:  FJ$227.15
You save:  FJ$68.15
Q536.42
List Price:  Q766.35
You save:  Q229.93
GY$14,636.95
List Price:  GY$20,910.82
You save:  GY$6,273.87
ISK kr8,568.87
List Price:  ISK kr12,241.77
You save:  ISK kr3,672.90
DH632.54
List Price:  DH903.67
You save:  DH271.12
L1,165.34
List Price:  L1,664.84
You save:  L499.50
ден3,681.93
List Price:  ден5,260.13
You save:  ден1,578.19
MOP$561.40
List Price:  MOP$802.03
You save:  MOP$240.63
N$1,228.52
List Price:  N$1,755.10
You save:  N$526.58
C$2,587.91
List Price:  C$3,697.17
You save:  C$1,109.26
रु9,866.40
List Price:  रु14,095.46
You save:  रु4,229.06
S/246.87
List Price:  S/352.69
You save:  S/105.81
K298.16
List Price:  K425.96
You save:  K127.80
SAR262.57
List Price:  SAR375.12
You save:  SAR112.54
ZK1,686.17
List Price:  ZK2,408.92
You save:  ZK722.74
L303.12
List Price:  L433.05
You save:  L129.93
Kč1,457.38
List Price:  Kč2,082.07
You save:  Kč624.68
Ft23,525.39
List Price:  Ft33,609.14
You save:  Ft10,083.75
SEK kr653.81
List Price:  SEK kr934.06
You save:  SEK kr280.24
ARS$99,099.91
List Price:  ARS$141,577.37
You save:  ARS$42,477.46
Bs485.97
List Price:  Bs694.28
You save:  Bs208.30
COP$276,738.17
List Price:  COP$395,357.19
You save:  COP$118,619.02
₡35,343.07
List Price:  ₡50,492.27
You save:  ₡15,149.19
L1,842.23
List Price:  L2,631.87
You save:  L789.64
₲503,765.04
List Price:  ₲719,695.19
You save:  ₲215,930.15
$U2,795.01
List Price:  $U3,993.04
You save:  $U1,198.03
zł254.51
List Price:  zł363.60
You save:  zł109.09
Already have an account? Log In

Transcript

Alright, let's add a jump animation. I opened my animator again. And if you want to move it, if you don't see some elements you can hold out and then simply move it. So I take the jump animation and drag it, drop it to the animator here. All right, let's make a transition from any state to jump, right click my transition jump and from jump to idle. All right, let's click on this arrow and create a new parameter.

Okay, so this time it is bool parameter. Let's call it grounded. Next, let's add a condition for the first transition. grounded and of course the first value is False. So if not grounded, then that means that my character is jumping. So it is in the air.

And that second arrow that add a new condition grounded. True. Alright, let's check that we don't have any exit time. No Exit time. Let's open our script. We already have the variable is grounded.

Do you remember we have created it while coding jumping. Go back to the lesson jump, if you'd like to refresh it. All right, let's go back the update function All right, and let's do the same thing for the false false grounded false. So we have used that flaw there, because we have a float parameter for idle to run animation. And, and now we use set bool because we have bool parameter here. Remember, parameter grounded, it is a bool.

And again, the grounded is the name of our parameter. All right, let's save it and go to our game. Jump Yay. Let me make it bigger. All right, move and jump, move and jump. Oh, that's that's pretty good.

Jump. Hey. All right. We have finished

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.