TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Alvin Eka
NA
15
5.2k
Running game C# visual studio windows form
Nov 10 2017 8:38 AM
i am currently making a running game for my college assingment using c# with visual studio 2011, currently i managed to make my character jump but i need to make it jump more than once can someone help me with the code?i would appreciate any kind of help
thanks
this is my code for making my player jump
in FormKeyDown
if (jump == false)
{
if (e.KeyCode == Keys.Space)
{
jump = true;
force = gravity;
}
}
in timer
if(jump)
{
player.Top -= force;
force--;
}
if(player.Top + player.Height >= screen.Height)
{
player.Top = screen.Height - player.Height;
jump = false;
}
else
{
player.Top += 1;
}
Reply
Answers (
1
)
Unable to submit an idea on the "Ideas" section
I am trying to understand the pseudo code for a quad tree