Pick only the first instance of a for loop

Get help using Construct 2

Post » Wed Aug 03, 2016 5:08 pm

I have this function setup to change a slot from one type to another :

Image

At the moment it picks all instances of slot0 that are "empty". How do I adjust the logic so that it picks only the first slot0 it finds in the ascending order?

Thanks
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857

Post » Wed Aug 03, 2016 9:15 pm

Also feel free to suggest a completely different method if I am doing this entirely wrong.
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857

Post » Wed Aug 03, 2016 9:48 pm

You should be able to call Stop loop after Set...
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Wed Aug 03, 2016 9:57 pm

@blackhornet haha cheers! I was trying to stop it using a condition, never used Stop Loop :D
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests