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
37
Posts: 2,549
Reputation: 31,711

Post » Mon Feb 13, 2012 4:32 am

It works fine here. Maybe provide a .capx?
Scirra Founder
B
362
S
216
G
75
Posts: 23,067
Reputation: 180,321

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
37
Posts: 2,549
Reputation: 31,711


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests