Hi, I’m working on a custom resize bar for my app that basically resizes a canvas with the mouse.
In debug mode everything is fine and the bar works perfectly.
With debug off, one of my variables suddenly goes NaN – which I think means ‘Not a Number’.
I did some hunting and found that this line causes the problem
mainheight goes NaN.
But if I do this
it works again.
Does anyone no why I can’t use mousey() in this way?
Thanks a lot.
In debug mode everything is fine and the bar works perfectly.
With debug off, one of my variables suddenly goes NaN – which I think means ‘Not a Number’.
I did some hunting and found that this line causes the problem
mainheight=mainheight+(MouseY()-tempy)
mainheight goes NaN.
But if I do this
my=MouseY() mainheight=mainheight+(my-tempy)
it works again.
Does anyone no why I can’t use mousey() in this way?
Thanks a lot.