Hey all, just a question on how to get the rectangles in this array to disappear when I click on one of them. I presume it's in the alpha section but I'm stuck as to how to implement it. I've tried putting a mousepressed within the for statement but it doesn't change it.
I'm having difficulty even describing this problem. :)
I have a map, and points on the map moving about representing people in a story (bit like Marauders Map) but I would like that when I click an icon the bottom corner the animation pauses and the dots (representing the characters) stop whereever they are and then display the name of the character. Any ideas or suggestions?
Just started to get into processing and I've hit a bit of stumbling block. I'm trying to create a menu where you select an image and information appear, but as of now I'm just having difficulty making a white shape over one of the images change its opacity when I hover over the certain image. If I run the shape section without the image code it works perfectly but when I integrate it either nothing happens (when noLoop is on) or one of the images fades to black (when loop is on). Very confused and I've hit a block in trying to solve the problem.
This may be a really simple problem but it's got me stumped, thanks anyone who can guide me on this.
PImage a, b;
int x = 0;
int y = 250;
int w = 500;
int h = 250;
void setup() {
size(500, 500);
b = loadImage("rathmines.jpg");
a = loadImage("jamesjoyce.jpg");
noLoop();
}
void draw() {
background(255);
loop();
if (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h) {