Change sprite size based on values entered

Discussion and feedback on Construct 2

Post » Thu Sep 01, 2016 3:31 pm

I want to change the size of a sprite based on values entered in a text box. Is this possible?


Thanks.
B
3
Posts: 4
Reputation: 433

Post » Thu Sep 01, 2016 4:29 pm

Can't seem to affect the properties of one object based on the value of another. I can move to the position of another. Anyone done this?
B
3
Posts: 4
Reputation: 433

Post » Thu Sep 01, 2016 5:01 pm

Yes ofcours.

Just know that the content of a texbox is a string. And size expects numbers.

Set width/height to int(TextBox.text). int() translates string to number.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 2 guests