Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
urso406
urso406'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
null pointer exception error
[1 Reply]
09-Dec-2010 06:25 PM
Forum:
Programming Questions
What is wrong with this code?
int numFrames = 8;
int frame = 0;
PImage[] images = new PImage[numFrames];
void setup(){
size(360,144);
frameRate(30);
images[0] = loadImage("1.png");
}
void draw(){
frame++;
if (frame == numFrames){
frame = 0;
}
image(images[frame],0,0);
}
«Prev
Next »
Moderate user : urso406
Forum