pick by comparision the lowest value of Y.(again) not solved

Get help using Construct 2

Post » Fri Jun 20, 2014 10:29 pm

Hello, I have worms and would evaluate and select the one with the lowest value of Y.

Image
https://dl.dropboxusercontent.com/u/366 ... rision.jpg

here the capx file:
https://www.dropbox.com/s/qep6dk102kk1v ... swers.capx
B
48
S
9
G
10
Posts: 200
Reputation: 8,268

Post » Fri Jun 20, 2014 11:08 pm

The easiest method is to pick the lowest Y is by using the first iteration of a For Each loop, ordered by the Y coordinate.
You do not have the required permissions to view the files attached to this post.
B
64
S
19
G
8
Posts: 341
Reputation: 12,185

Post » Fri Jun 20, 2014 11:23 pm

Excelent! solution!!


Does anyone else want to provide a different solution?
B
48
S
9
G
10
Posts: 200
Reputation: 8,268

Post » Fri Jun 20, 2014 11:32 pm

@zatyka 's solution is exactly what I would propose. Any other solutions would be just doing what the ordered for each does in a more roundabout way
B
6
S
2
Posts: 79
Reputation: 608


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests