How do I make my cursor image not repeat itself?

edited September 2017 in JavaScript Mode

https://www.openprocessing.org/sketch/452940 --- this is my current code

Basically, we are working on making our sketches interactive so I wanted my cursor to be a UFO. I imported the image and put it in my code, but now I am trying to figure out how to have my cursor go around the screen without having the image being left behind. I know that the solution would be to do:

background(0);

image(ufo, mouseX, mouseY);

but when doing that it covers the existing sketch... I've scoured google and can't find anything, please help a grl out!

Tagged:

Answers

Sign In or Register to comment.