Download Construct 2 release 27

Discussion and feedback on Construct 2

Post » Sun Feb 13, 2011 2:52 pm

Ok, that answers my question then. Was simply wondering.

I think I found a problem with either the text object or variables.

I have an object named "player" with the variable "health" and wanted to have the text show the variables value so I set the text to: player.health, each tick. However the text object displays nothing when I do this. However, if I instead set the text to: "Health:" & player.health, then it displays both the text and the value. I added it to the tracker with the capx.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Sun Feb 13, 2011 3:18 pm

Might try str(player.health).
At this time text doesn't accept anything except strings.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sun Feb 13, 2011 3:49 pm

Yup, that worked.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Tom and 20 guests