Making character go from flying to walking after hitting ground.
I am trying out a small prototype where I have character which can run around and jump. When the character then stays in the air for x seconds he starts flying, this all works well the problem I have is when he is supposed to land again. The character won't recognize that he is on the ground and just keeps being in fly-mode.
I have thought of a solution where I could cause a hit event when the character hits the ground which would force him into walk-mode but I was wondering if there were any other, potentially better, way of doing this.
I'm experimenting with this at the moment, I'm thinking I'll do a line trace below the character and if there is ground about 100 units from their feet, then I will use a set movement mode node to make them in the jumping/falling movement mode. This way they will still have the ground-landing animation as they would when they jump.
answered Aug 27 '16 at 06:35 PM
A line trace isn't necessary.
This should answer it for you. :)
Call this event and set the details of the function to do what you need them to. Good luck!
answered Aug 28 '16 at 12:46 AM
Mark James G
Follow this question
Once you sign in you will be able to subscribe for any updates here