Is it possible to trigger an event when user gets infront of a image? #26
Unanswered
aqibshabbir
asked this question in
Q&A
Replies: 1 comment
-
The placement.js script exports a function called update which has access to the variable batch. This array contains the nearby paintings. You can simply check the distance between the player (the pos argument of update) and the paintings (the pos attribute of the painting object). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all i would say you have done amazing work, really appreciate you for making it open source.
I have a question, I ll be glad if you could help me.
My question is when some user moves in-front or gets in a xyz range of a image, is it possible to trigger an event and alert() the title of the image or user could be prompt to press enter to get image title?
Note: This approach will be used to get the details of image using API and display them in modal. If you have some other technique please let me know.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions