Hi everyone, I'm new here and had a quick question.
I have two hotspots in the same scene. hotspot #1 have a "component" (ClickbyHoveringCursorExample) to change scenes. the other hotspot #2 is to examine an object up close when you "click" on it. but for some reason the the component on the first hotspot is effecting the 2nd one, so now they both have a hover component even though I only put it on the 1st. How can i stop that from happening? Any help would be appreciated, thanks!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @samory.
The Click By Hovering Cursor Example component is not intended for any one Hotspot - rather, it should be added to a separate empty GameObject in the scene.
Are you looking to select the first Hotspot automatically? If you can describe your intention, I can give give more specific advice on the way things should be set up.
Hi, thank you so much for answering.
This game is a 2D , 1st person POV game (similar to Myst) what i was trying to do was create a point in the room where you can look around the room to get a 360 degree view by simply hovering the mouse to the far left side of the screen or far right. (This will be done by creating 16 images in all directions). that way the player wont have to click so much. also within that room will be regular hotspots that you can examine objects too. so i was trying to figure out to get both to work if possible.
Thanks for the details.
It's possible to run a Cutscene when hovering over a Hotspot by attaching the Event Runner component to it, and defining a Hotspot: Select event for that Hotspot. You can then assign a Cutscene that will run when that specific Hotspot is hovered-over.
It's also worth mentioning that the "Movement template: 2D First-Person" package over on the Downloads page covers similar behaviour, but works by switching between cameras that represent each of the four cardinal directions.