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
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

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
169
S
50
G
169
Posts: 8,284
Reputation: 108,212

Previous

Return to How do I....?

Who is online

Users browsing this forum: mihirolover, tarek2 and 4 guests