r/processing • u/WaifuSlayerV8 • Nov 20 '24
Ayuda
Hola buenas, llevo bastante rato buscando el error pero no soy capaz de solucionar, agradecería profundamente la ayuda
0
Upvotes
r/processing • u/WaifuSlayerV8 • Nov 20 '24
Hola buenas, llevo bastante rato buscando el error pero no soy capaz de solucionar, agradecería profundamente la ayuda
9
u/IJustAteABaguette Seeker of Knowledge Nov 20 '24
There are 2 problems here. You have a println() outside of any function. You have to put it inside the setup() or draw()
There can also be only 1 setup, and 1 draw function. You have to combine the 2 void draw() functions.
4
u/FlightConscious9572 Nov 20 '24 edited Nov 20 '24
Summary of problems:
you can only have one draw()
if (isStarted) --> ; <--remove thisprintln(mouseX, mouseY) <-- remove entire line or put in draw or setup
If you want to put something somewhere else, create a function and call it at the end of draw (so it happens after the other things in draw.)
1
u/cishcails Nov 20 '24
start with bounding box collision, super simple and gets you going fast!