Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
max.mallory
max.mallory's Profile
1
Posts
4
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
expecting RCURLY, found 'else' error, but no syntax problems.
[8 Replies]
26-Apr-2012 01:30 PM
Forum:
Programming Questions
Hey everyone,
I'm having a problem with this expecting RCURLY, found 'else' error. Usually, this seems to pop up when there's a syntax problem, but I can't see anything wrong with this block of code. If anyone could help out, I'd appreciate it.
void setup() {
size(920, 1080);
smooth();
img5= loadImage("spacewall2.jpg");
//img6= loadImage("spacewall2.jpg");
music = new Minim(this);
song1 = music.loadFile("spacetheme.mp3");
song1.loop();
clr = color(255, 0, 0);
frameRate(60);
font = loadFont("Monospaced-48.vlw");
b = loadImage("player.png");
e = loadImage("enemy.png");
// create enemys
for (int i = 0; i < num_enemys; i++) {
enemies[i] = new Enemy();
}
// create player
player = new PlayerNew(width, height);
}
«Prev
Next »
Moderate user : max.mallory
Forum