First problem - I can't use a global variable in my function. To give you an idea:
Code: Select all
/*** Global variable ***/
score = 0
TextOut(#RIGHT, #TOP, "Your score:" + score)
This throws an error "Wrong operator for this type!" in the console. So it'll only take a string here? What did I do wrong?
Also wondering as for how to use the WordWrap parameter on TextOut(). The guide says the default is 0. So I have to declare a size in pixels, e.g. WordWrap = 600 ? I have text running out of the window all the time. Dang, I'm so used to margins and paddings ...