About Store Forum Documentation Contact



Post Reply 
How can i make a player jump?
Author Message
DreamsInHD Offline
Member

Post: #1
How can i make a player jump?
i have a Player class wich works fine, but i don't know how i can make someone jump and then land on the ground again. also, how do i make sure you can't fall through the ground.

Thanks in advance.
09-22-2015 06:06 PM
Find all posts by this user Quote this message in a reply
Ezequel Offline
Member

Post: #2
RE: How can i make a player jump?
Hi, you can create a physical body for your character model in the editor, then it should not fall trough. For the jump animation, you can import the animation, link it to the player object and start it in your code upon a keypress for example.
Make sure to set the gravity and enable physx in the code also. You can also take a look at the tutorials, since I think there are some also including a jump animation.
Good Luck smile
(This post was last modified: 09-23-2015 12:32 PM by Ezequel.)
09-23-2015 12:30 PM
Find all posts by this user Quote this message in a reply
Post Reply