#what is wrong with my mousePressed code?

18 messages · Page 1 of 1 (latest)

lyric mirage
#

exactly as the question states…. Processing is telling me something is wrong but what? 🫩

glacial moon
#

can you paste the exact error message shown on the screen here

#

I think that extra open curly brace is the problem.
Where is the closing curly brace for the draw function?
Maybe it causes the syntax error.

lyric mirage
#

yeah here take a look

#

Syntax Error - Missing operator or semicolon near mousePressed?

#

but like..... everything looks fine

#

and the thing is, it was working earlier when i was following this tutorial on yt, but now that im trying to create something on my own its acting weird!

#

but then theres one below it too

#

Syntax Error - Missing '}' sketch_2 13

#

but again its there!

#

oh for fudges sake

#

it was open i think instead of closed

#

ef my chungus life

#

i even sent it to my coding friend and he didnt even catch it

#

how did i not see that

#

god thanks for making me look harder, were good now!

glacial moon
#

finally, you got the mistake right?