So first off a "Hi there!" to everyone, I'm new to the forums and just got Hollywood yesterday. (Well, bought it last week, but didn't have the time to snoop into it). I'm about to return to the Amiga community and in the process of buying a SAM 460 machine. Yaay! I bought Hollywood because all those articles in the Amiga Future aroused my interest over the years. I've been doing away with the built-in guide, which helped answering lots of my questions already. However, upon playing around with the IDE under windows I ran into a problem. (info: I have a "webby" background (javascript / php) so you know where I'm coming from)
First problem - I can't use a global variable in my function. To give you an idea:
Code: Select all
/*** Global variable ***/
score = 0
Function p_score()
TextOut(#RIGHT, #TOP, "Your score:" + score)
...
EndFunction
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?
WordWrap:
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 ...