How to make character jump high one time.

finaratic

Member
So i am making a game where enemies will spawn behind the walls, that are a few meters tall. I want my characters to jump across this walls and to do this i should lower the gravity or increase the force just for this jump, later they should behave normally and jump less higher after it. Any ideas on some good approach to this? My idea is just to create triggers before and in the middle of the jump trajectory to change parameters, but i think there is a better solution. Thanks :)
Using off mesh links to manage this jump by the way
 
Using a trigger that sets a state on the Jump ability so there's more force added is the right way to go. You can do this without any coding using the State Trigger component. In the demo scene I do something similar in the double jump area.
 
Okay, thanks, i am doing it with my trigger script then, but i run into some problem. So if i increase jump power it just jumps very high but not in length, i need to make my character jump far and not so high. What would you advice?

SOLVED by adjusting some other values
 
Last edited:
Top