How to make an actor jump with gravity on.
Hi, i was just wondering if their were any gamesalad tutorials (specifically t-shirtbooth but others too) on youtube that show you how to make an actor jump when gravity for that specific actor is on. Thanks.
Comments
Or are you using a move function like "change velocity or accelerate"?
Personally I wouldn't use the scene attribute for gravity but instead use functions within the actor.
To make your actor jump you can set an "accelerate" to direction 270 and speed 1000 and when the attribute that you use to signal the actor is jumping have a rule that says change "self.motion.linear Velocity.Y" to 400
There are multiple ways to accomplish what you want to do, and this question has been asked a lot in the forums and a lot of clever techniques have been posted. Search a bit for a solution that fits your needs if mine doesn't. Also try and play with the values of accelerate and self.motion a bit to get the desired effect.
Good luck
Dan