Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
kobyk1
kobyk1's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
I am trying to make a game using processing where a cube follows a set path and has to jump over obstacles.
[1 Reply]
01-Dec-2010 07:03 PM
Forum:
Programming Questions
So far this is what i have, i just need to find a way to get my object back down after it jumps
float boxy;
void setup()
{
size(400, 400);
boxy = height - 50;
}
void draw()
{
background(120);
if (jumping) {
boxy--;
}
rect(width/2, boxy, 20, 20);
}
boolean jumping = false;
void keyPressed()
{
if (keyCode == 38 && !jumping) {
jumping = true;
}
}
«Prev
Next »
Moderate user : kobyk1
Forum