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
45
S
15
G
73
Posts: 2,006
Reputation: 43,394

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
45
S
15
G
73
Posts: 2,006
Reputation: 43,394

Post » Wed Aug 03, 2016 9:48 pm

You should be able to call Stop loop after Set...
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

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
45
S
15
G
73
Posts: 2,006
Reputation: 43,394


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests