Displaying the contents of a variable?

Game Editor comments and discussion.

Displaying the contents of a variable?

Postby kruze » Thu Nov 16, 2006 8:35 am

How do I display the contents of a variable on-screen or from a Text Actor?
kruze
 
Posts: 8
Joined: Thu Oct 26, 2006 6:54 am
Location: UK
Score: 0 Give a positive score

Postby sonicfire » Thu Nov 16, 2006 10:01 am

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;"

hope it helps! :)
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby kruze » Fri Nov 17, 2006 10:23 am

Thx man!
kruze
 
Posts: 8
Joined: Thu Oct 26, 2006 6:54 am
Location: UK
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron