Simple ofPoint question

I declared

ofPoint upperLeft;

in header file.

and I wanted to set the coordinates of x, y of the point so I went to setup() and typed in

upperLeft.x = ofGetWidth() - 240;
upperLeft.y = ofGetHeight() - 40;

and error keeps poping up says .x and .y doesnt exist… but the tutorial I’m reading is using that code.

what’s the problem?

Hi,
This works as expected here (Mac OSX 10.15.7, of_v0.11.0 w/ XCode 12.1).
Can you give some details of your OS + OF version and perhaps post the full code?

looks like some sort of error occurred I restarted the project and it runs fine!!!

1 Like