if(stop == true){ hammertime(); }

boolean stop = true;
boolean touchingthis;

void setup(){
size(100,100);
background(255);
frameRate(30);
}

void draw(){
if(stop == true){
hammertime();
}
else{
touchingthis = true;
println(“Touching this allowed”);
}
noLoop();
}

void hammertime(){
touchingthis = false;
println(“Touching this denied”);
}

Advertisements

2 responses to “if(stop == true){ hammertime(); }

  1. does this work in processing? -received an error for ‘touching this allowed’

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s