I'm trying to make a bejeweled clone and would like to be able to set a couple of dynamic properties for each gem that's being created in a for each loop using a "System.CreateObject" action which places a random gem sprite over each cell in a grid. I'd like to refer to the last created gem sprite to set it's dynamic properties but I'm not sure how to access it after it's been created without creating a new event. Isn't there some kind of local variable scope or closure in an action for objects created in the same action?
My hope is that since the end result is javascript we can enjoy a similar kind of variable scope inside Construct as well. I'm probably thinking about this the wrong way, but am just trying to wrap my head around the basic rules.
Thanks,
Ben