SOLVED// How do I make a text untouchable/unclikable?

Just started using Construct 2? Post your questions here

Post » Mon Apr 13, 2015 2:18 pm

I have multiple texts which have button roles. I need to make each of them untouchable/unclickable time by time. I know how to do this with sprites ( collision-disable) . But how to make it work on texts? Also, I will need an action to make it clickable again, when needed. Can anyone help me out?
Last edited by MangoPolo on Mon Apr 13, 2015 11:21 pm, edited 1 time in total.
B
8
S
2
Posts: 110
Reputation: 928

Post » Mon Apr 13, 2015 3:10 pm

Give the text object a boolean instance variable called "Clickable" and set it true when you want it to be able to be clicked. Then, in your on click event add a condition to check the Clickable variable.
B
39
S
12
G
11
Posts: 331
Reputation: 7,727

Post » Mon Apr 13, 2015 4:04 pm

I understood the first half of your idea, but cannot realize the fact how to check the clickable variable.

Can you look at this example and put a light on my errors please? I would be very thankful! I did the first half. Now I am stuck...
I want buttons be unclickable while x2 is pressed. capx:
drive.google.com/file/d/0B09lLdP7JoIASWZ2UDBMM1kxM3c/view?usp=sharing
B
8
S
2
Posts: 110
Reputation: 928

Post » Mon Apr 13, 2015 11:20 pm

I finally understood the logics and made it! Thank you!
B
8
S
2
Posts: 110
Reputation: 928


Return to Beginner's Questions

Who is online

Users browsing this forum: JackTYGA and 3 guests