Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
XNA how can i insert the jumping in my character?
Andariel Sharp
Jul 31 2015 11:44 PM
384
Reply
ks = Keyboard.GetState();
if (ks.IsKeyDown(Keys.Right) && position.X <= 680)
{
position.X += 2f;
currentAnim = forwardWalk;
Animate(gameTime);
}
else if (ks.IsKeyDown(Keys.Left) && position.X >= 0)
{
position.X -= 2f;
currentAnim = backWalk;
Animate(gameTime);
}
How can i make Up key for jump?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Delegates
C# Regular Expression to validate phone number