help variables

For questions about using Classic.

Post » Sun Mar 20, 2011 10:50 am

exemple please

won make show variable on text

ex: bar=100 and colide enemig decresed bar
B
5
S
1
G
1
Posts: 19
Reputation: 1,088

Post » Sun Mar 20, 2011 11:42 am

To make the variable's value show up in a text object:

Set text: "Bla bla" + str(global('VariableName'))
B
10
S
3
G
3
Posts: 110
Reputation: 2,206

Post » Sun Mar 20, 2011 12:08 pm

make sure you've added a Text Object to the layout
on the event sheet, use the Set Text action of the Text Object


for global variables:
[size=85:23h82ml8]Set Text: [/size:23h82ml8] Global('VariableName')


or for private variables:
[size=85:23h82ml8]Set Text: [/size:23h82ml8] MySprite('VariableName')
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Mar 20, 2011 3:41 pm

nice ty
B
5
S
1
G
1
Posts: 19
Reputation: 1,088


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests