I've just had a win and am quite ecstatic about it, so I want to share. Warning though - as I'm still a rank amateur and a relative newbie, this is simple stuff for most of you.
I've been battling with the Touch routine, for managing items on the screen. What I was seeing just didn't make any sense, and I've been battling with it now for a couple of weeks. BUT, I've just figured it out. (Spooler alert - this is where you'll slap your forehead and say "Duh")
I've always thought that the Touch routine was referencing the entire screen, so X was the position on the screen from the left and Y was the position on the screen from the top. But after doing lots and lots of round and round, and using a myriad of LOG comments, I've finally realised that X and Y refer to the item you are clicking on, not the whole screen.
Suddenly everything makes a lot more sense. Phew. I could share other dumb things with you, but one for today is enough. Does anyone else have an embarrassingly dumb thing they'd like to share?
I've been battling with the Touch routine, for managing items on the screen. What I was seeing just didn't make any sense, and I've been battling with it now for a couple of weeks. BUT, I've just figured it out. (Spooler alert - this is where you'll slap your forehead and say "Duh")
I've always thought that the Touch routine was referencing the entire screen, so X was the position on the screen from the left and Y was the position on the screen from the top. But after doing lots and lots of round and round, and using a myriad of LOG comments, I've finally realised that X and Y refer to the item you are clicking on, not the whole screen.
Suddenly everything makes a lot more sense. Phew. I could share other dumb things with you, but one for today is enough. Does anyone else have an embarrassingly dumb thing they'd like to share?