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
147
S
58
G
38
Posts: 2,557
Reputation: 32,519

Post » Mon Feb 13, 2012 4:32 am

It works fine here. Maybe provide a .capx?
Scirra Founder
B
366
S
217
G
82
Posts: 23,262
Reputation: 183,654

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
147
S
58
G
38
Posts: 2,557
Reputation: 32,519


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests