haha yes, you need to do it more “processing” style
int x; “declares” a variable -> it tells processing: “hey, I exist”
x = 0; initializes it - at. some point you need to tell what’s inside x
then you can access that value in your code.
if you’re lazy you can do the first two steps at once:
int x = 0; // outside of setup() or draw()