Activate Group by variable

Get help using Construct 2

Post » Mon Feb 13, 2012 1:28 am

I have a text variable "TXT" set to "" (empty)

and few groups Group A, Group B, Group C
and few instances of same sprites with different variables.

My setup is quite simple:

Mouse: Cursor is over sprites -> Set TXT to "sprite.variable"
Mouse: On click on sprite     -> Set group "TXT" Activated

everythings pretty but I can't find the way to pars text variable TXT value to the "set group active" expression.

strange but setting it like """" & TXT & """" returns "TXT", but don't works with group :)
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Mon Feb 13, 2012 4:32 am

It works fine here. Maybe provide a .capx?
Scirra Founder
B
399
S
236
G
89
Posts: 24,542
Reputation: 195,428

Post » Mon Feb 13, 2012 10:57 am

Ahh, I'm sorry. My fault, It is working. Found an expression disabling that group constantly in my events...
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests