@Ali-Hassan said in Help with file select screen:
as far as I can see ... you are not even initializing the
whitSquare variable right. since you are creating a new local variable in the
create() function using the
var keyword. so I can't see where is the public variable initialized.
Ahh, that was it, all I had to do was remove the
var before whiteSquare and it fixed my problem!
I would also advice against using relative values when moving the cursor. because then you wouldn't be able to tell when a position is wrong quickly since errors are accumulated. so something like
whiteSquare.y = 155; is better
That was just a thing I was testing out right before I posted the code to the forum, forgot to change it, but I'll definitely keep that in mind!