Pick object from loop

Get help using Construct 2

Post » Tue Feb 09, 2016 11:31 pm

I want run a loop on localstorage:

+ On item: "score"%loopnumber exists
+ Repeat 10 times
+ Value > 3

But I want it to pick an object like this:

+Set object "sprite%loopnumber" = visible

I'm not sure if this is the best way to wildcard test for a sequence of similarly named storage items (besides the last character, which is a number) or if this is even possible? Would it be easier if all of the sprites were added to a family?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Post » Tue Feb 09, 2016 11:52 pm

You can use Rex's Nickname plugin
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Fri Feb 12, 2016 2:20 pm

7Soul wrote:You can use Rex's Nickname plugin

Thanks, I'll try that!
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253


Return to How do I....?

Who is online

Users browsing this forum: sublimate and 1 guest