Retrieve button's text

Get help using Construct 2

Post » Sat Oct 26, 2013 12:37 pm

For example, how do I retrieve button's text when button is clicked?
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Sat Oct 26, 2013 12:55 pm

Lol, I don't believe you can.
I don't think I've ever seen button.text anywhere. I don't use buttons cause they aren't cross platform safe.

I create image of button (far nicer and works cross platform), place text/spritefont on top and retrieve that text.text into variable etc
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Sat Oct 26, 2013 1:04 pm

@Herks you could also look at using an instance variable to store information in a button.
B
13
S
4
Posts: 67
Reputation: 1,270

Post » Sun Oct 27, 2013 1:03 am

@AngelEyes Thanks for the suggestion.
B
23
S
9
G
3
Posts: 114
Reputation: 3,794


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests