- This topic has 7 replies, 3 voices, and was last updated 1 year ago by kdv.
-
AuthorPosts
-
2023-11-30 at 6:51 pm #68919ma77hewParticipant
I have a group of objects. I want all of them to have a feature on hover (enable outline). How do I enable outline on hover for each individual object in the group? Instead of adding this feature one by one?
However, this highlights every object in the group, rather than just the one that is hovered over.
How do I specify to target only the 1 object?2023-11-30 at 10:19 pm #68920kdvParticipanthttps://www.soft8soft.com/docs/manual/en/puzzles/Events.html#hovered_object
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-12-01 at 4:01 pm #68923bigmike814CustomerYou need to run it in a loop so they can be looked at individually.
See the attached example.
Attachments:
You must be logged in to view attached files.2023-12-01 at 6:11 pm #68926kdvParticipantThis method with a loop is really good to register dragging for several objects at once but is next to senseless with hovering and clicking. It will work but there is an easier way…
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-12-01 at 6:20 pm #68927ma77hewParticipant@kdv I tried using the “hovered object” in place of “Artwork” for inside the “on over do: / out do:” section of the puzzle but that did not work. I tried to work with the list idea at first but was not very clear to me how to use it properly. I will give mike’s suggestion a try.
2023-12-01 at 6:59 pm #68928kdvParticipantI tried using the “hovered object” in place of “Artwork” for inside the “on over do: / out do:” section of the puzzle but that did not work
Looks like you did something really wrong if that simple set of puzzles from the official manual doesn’t work for you
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-12-03 at 7:37 pm #68939ma77hewParticipantYes, you are right. I do a lot of my testing from the puzzle editor, which is where I tried this puzzle combo. For some reason this combination did not work for me inside the puzzle editor. Now I understand that sometimes, you need to test your Verge3D HTML scene to see if everything behaves. Thank you
2023-12-03 at 7:44 pm #68940kdvParticipantFor some reason this combination did not work for me inside the puzzle editor.
Press the green button Play in the puzzles editor after adding new puzzles.
Now I understand that sometimes, you need to test your Verge3D HTML scene
Actually, it’s better test your apps in a separate window, not in the puzzles editor’s viewport, for more accurate results.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
-
AuthorPosts
- You must be logged in to reply to this topic.