Actor's velocity decreases as y position increases?
I'm trying to make a pseudo 3d effect where my actor moves with velocity according to attribute game.speed (which I have achieved), but I want this attribute to decrease as his y position increases. So basically my actor should slow down as he moves up the screen. I can't figure this out for the life of me without using derivatives...
Any math wizzes out there that can help me?
Any math wizzes out there that can help me?
Best Answer
-
Zoyt Posts: 374
You could just tell it to apply a force down at a distance from the ground divided by whatever number is reasonable.
Answers