How do I write out some instance variables in text?

Get help using Construct 2

Post » Thu Aug 21, 2014 7:14 pm

Hello

So, I have some instance variables in my spaceship sprite (weapon_1_ammo, weapon_2_ammo ...) and I want to write out my ingame screen.
I don't want to use global or locale variables for this. The 'set text' function is can't use instance vari of my ship. It's just can use the global and locale vari.

Is there something solution for this?
B
5
S
1
Posts: 37
Reputation: 441

Post » Thu Aug 21, 2014 7:25 pm

Use the set text with line like: YourShipSprite.variableName
B
24
S
9
G
7
Posts: 756
Reputation: 7,312

Post » Fri Aug 22, 2014 3:46 pm

Thanks! Meanwhile I realized this solution :)
B
5
S
1
Posts: 37
Reputation: 441


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests