displaying a variable
Posted: Fri Jan 19, 2007 7:13 pm
Folks - Im a REAL newbie and trying to display a variable from a text actor. Sonicfire has explained this previously, but i just dont get it. Please help.
Sonicfire says:
" in your actor go to "Text" and enter the amount of decimals you want to display your variable with. (e.g. one zero (0) or more (000)).
then choose "draw actor" event -> script editor and enter "textNumber = yourvariable;"
But -
(1)when i go to "Text", where do i enter the amt of decimals i want ?(none - i want a whole number).
(2) how do i display this variable on the game screen?
I am trying to decrese this variable by 1 each turn, and want to see it displayed at all times.
Can someone go thru it in step-by-step, click-here-click-there fashion for me?
Sonicfire says:
" in your actor go to "Text" and enter the amount of decimals you want to display your variable with. (e.g. one zero (0) or more (000)).
then choose "draw actor" event -> script editor and enter "textNumber = yourvariable;"
But -
(1)when i go to "Text", where do i enter the amt of decimals i want ?(none - i want a whole number).
(2) how do i display this variable on the game screen?
I am trying to decrese this variable by 1 each turn, and want to see it displayed at all times.
Can someone go thru it in step-by-step, click-here-click-there fashion for me?