Page 2 of 2

PostPosted: Sun Apr 22, 2007 8:15 am
by littlekruser
hmmm, how do I display the var now? The old method isn't working. Also how can I get it to change the var being displayed. I'd like to display the vars of the actor that you click on.

PostPosted: Sun Apr 22, 2007 1:14 pm
by Sgt. Sparky
do you mean display wood lvl?
to do that just make a normal actor and make it text,
the put this in its draw actor event
Code: Select all
sprintf(text, "Wood level:%d", woodlvl);

:D
I do not know what you mean when you click on a variable, do you mean where you press a button and the text copies to the script so you can use it?
if you want to do that just click on the variables button and on the left of the list you're variables are listed and click on the variable you want. :D

PostPosted: Sun Apr 22, 2007 8:29 pm
by littlekruser
I mean display the variable for the actor that you click on.

PostPosted: Sun Apr 22, 2007 9:47 pm
by Sgt. Sparky
Okay,
make an extra variable called woodlevel2, it has to be a global. :)
On the mouse button down event of the tree:
Code: Select all
woodlevel2 = woodlevel;
sprintf(your_text_actor.text, "Wood level:%d", woodlvl);

:D

PostPosted: Sun Apr 22, 2007 10:02 pm
by makslane
Or, just put (in a text actor):

Code: Select all
textNumber = woodlevel;

PostPosted: Sun Apr 22, 2007 10:07 pm
by Sgt. Sparky
he is wanting it to change to the variable of the actor that was just clicked on.
:D

(sorry if I have offended anybody :oops: [although I would not know why.])

PostPosted: Mon Apr 23, 2007 1:30 am
by littlekruser
alright man, thnx alot for all your help! your a life saver :D

PostPosted: Mon Apr 23, 2007 3:37 am
by Sgt. Sparky
you're welcome. :D
any time :)