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
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

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
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Sat Jul 11, 2009 2:24 pm

cheers
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests