Pick farthest from X Y

For questions about using Classic.

Post » Sat Jul 11, 2009 8:02 am

What happens if for SpriteA I go
-- Pick farthest from SpriteB.X, SpriteB.Y

will it just pick the farthest SpriteA from the first instance of SpriteB? or does it choose a random SpriteB when I do that event?
B
151
S
75
G
20
Posts: 1,793
Reputation: 22,749

Post » Sat Jul 11, 2009 8:32 am

Random, you must pick SpriteB also.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Sat Jul 11, 2009 1:47 pm

It won't refer to a random one, it'll be the first created object. That means it consistently refers to one object instance, but it may as well be any of them. Read this article for more information, especially the expression rule.
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,471

Post » Sat Jul 11, 2009 2:24 pm

cheers
B
151
S
75
G
20
Posts: 1,793
Reputation: 22,749


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests