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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Mon Feb 13, 2012 4:32 am

It works fine here. Maybe provide a .capx?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

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
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Kagubro, MisterAqua and 22 guests