Page 1 of 1

get location

Posted: Wed Jan 26, 2022 4:29 pm
by Samuele
Hi, is there a way that i can get the location of an object, this would be helpful for example if the location of the objects a random location and i want to get the location if something happens for example, thanks!

Re: get location

Posted: Wed Jan 26, 2022 4:31 pm
by dunbarx
Hi.

The "location" property does just that. And if you did not know about that, consider looking at such things as the "topRight", "Bottom", etc.

Craig

Re: get location

Posted: Wed Jan 26, 2022 4:32 pm
by dunbarx
Also look at the "ScreenLoc" function. It often is more useful, depending on what you are up to.

Craig

Re: get location

Posted: Wed Jan 26, 2022 5:15 pm
by richmond62
SShot 2022-01-26 at 18.13.15.png

Re: get location

Posted: Wed Jan 26, 2022 5:28 pm
by Samuele
Thank you very much, it worked!

Re: get location

Posted: Wed Jan 26, 2022 5:57 pm
by Klaus
And is also listed in the Dictionary under "location"! 8)

Re: get location

Posted: Wed Jan 26, 2022 5:59 pm
by richmond62
Some people obviously feel that the Forums are the 'go to' place rather
than the Dictionary. This might be because the Dictionary presupposes
you know the term you are looking for.

Re: get location

Posted: Wed Jan 26, 2022 6:07 pm
by Samuele
Klaus wrote:
Wed Jan 26, 2022 5:57 pm
And is also listed in the Dictionary under "location"! 8)
What do you think, now before posting i always check the dictionary first, since i can imagine you yelling at me "check the dictionary!" :lol:
no, but joking aside, I looked for it under location but I didn't find it, or maybe i just didn't understand what i'd found.

Re: get location

Posted: Wed Jan 26, 2022 6:11 pm
by richmond62
maybe i just didn't understand what i'd found
It isn't always easy. 8)