We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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!
Answers
http://ProcessingJS.org/reference/cursor_/
http://ProcessingJS.org/reference/preload/
Hmm, I've gone through the cursor reference page, and i understand that...I already loaded my image as the cursor and it works, but when it moves it leaves a trail of the image underneath my existing sketch which I don't want it to do.
When I add the background(0); it then covers my entire sketch with the black background...
When you have a scene or a background image you need to draw the entire thing at the beginning of draw()
But a proper mouse cursor should not leave a trail though