PC Codea - coding on Apple gear

Hi - back again another PC query - in the project I am currently running, when run on my iPad I use a button location based on a variable containing the the WIDTH variable and the HEIGHT variable. So on the PC when I run the project, because the window generated is not fixed and is often at different aspect ratios I can’t use fixed positions for buttons etc.

I’m sure there’s a simple answer to that but I’d like to know how other users on Macs get round the problem.

I would suggest that master variables, holding different iPad dimensions, could be used to lock window sizes and allow their use for positioning assets on the screen.

How does everybody else get round this ?

Sorry to say I’ve never tried any Mac Codea stuff. Do the windows still use WIDTH and HEIGHT?

@UberGoober - there present but I’m not sure how they function in an environment that has adjustable window size. - for instance do button locations self adjust if a window is rescaled ?

@UberGoober - found out - searched on Netflix and you apparently have to use dynamic scaling.

I think a window dimension lock would be a good alternative and a better option personally.