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
139
S
70
G
17
Posts: 1,770
Reputation: 20,380

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
383
S
225
G
86
Posts: 24,134
Reputation: 190,601

Post » Sat Jul 11, 2009 2:24 pm

cheers
B
139
S
70
G
17
Posts: 1,770
Reputation: 20,380


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest