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
155
S
61
G
41
Posts: 2,577
Reputation: 34,314

Post » Mon Feb 13, 2012 4:32 am

It works fine here. Maybe provide a .capx?
Scirra Founder
B
378
S
220
G
84
Posts: 23,868
Reputation: 188,111

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
155
S
61
G
41
Posts: 2,577
Reputation: 34,314


Return to How do I....?

Who is online

Users browsing this forum: justintime0185, oddreal, TRMG, twomonocles and 10 guests