Mitchell's Best Candidate Algorithm for Sprite Placement?

Get help using Construct 2

Post » Fri May 27, 2016 8:37 pm

@newt
It just calculates all the distances and picks the closest.
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Fri May 27, 2016 8:53 pm

I imagine as a for each that might slow things down.
I'm just wondering if we should have an expression to get the closest value from a list.
Sort of like min(), or max()
closest(value(a,b,c,d....)) or something like that.
That way you wouldn't have to rely on distance(), or objects.
Of course I'm not sure how that would work with xy coordinates either.
Image ImageImage
B
172
S
50
G
183
Posts: 8,443
Reputation: 115,605

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests