I have a screen that I use to display tutorials and other game information. I do so by calling the screen whilst passing the information i want to display through as a string.
For some strange reason when i display the screen the messages are always one behind. I.e.
If i display the screen five times with the the strings "a", "b", "c", "d", "e" passed into it respectively
I get the output "a", "a", "b", "c", "d"
Any ideas why that might be
Code for the screen is:
Code: Select all
screen GuideScreen(inf):
frame:
xpadding 25
ypadding 25
xalign 0.5
yalign 0.5
has vbox
label "Game Guide" xminimum 400
text "[inf]"
text ""
button:
text "{font=gui/fonts/GOTHIC.TTF}{color=#ffffff}{size=12}Close{/font}"
background "#333"
ypadding 3
xpadding 14
xalign 1.0
yalign 1.0
action Return()
Code: Select all
call screen GuideScreen("This is my message")