How do make the pawn to jump over time?
So I need to make a var called happiness, and i want it to decrease by a value every second or something. If > 50 the bot pawn will jump every decrement. If less than 50 i want to print a string saying he's sad. and lastly At 0 the value or timer will reset to 100.
I don't know how far along you are but I will give you some pointers to look at. To do something every X seconds you can set a looping timer. In Blueprint you call SetTimer and give it the name of the function to call each tick. Make that custom event in your blueprint and decrement the happiness. In order to make your character jump there is a LaunchCharacter node which is perfect for that purpose. Just give it enough Z launch velocity.
answered Jul 20 '18 at 06:27 PMBrian Johnstone (suspended)
Follow this question
Once you sign in you will be able to subscribe for any updates here