Cursor verification in Cardboard

I’m using cardboard goggles that don’t include a controller. I have a question regarding programming with the CoBlocks language, because I’m trying to create a function that detects the mouse cursor when it has exited an object after 3 seconds. What we want is to include an error check; for example, if you move your head with the goggles and accidentally hover over text elements, they all get triggered because of the HOVERED function. What I want is to create a kind of “verification” that requires you to look at the same object for 3 seconds, to confirm that you want to interact with it, and otherwise, there should be no interaction from the hovered event.

On the other hand, I would like to find a way to allow users to move without a controller, but still have a certain freedom to stay in a scene for as long as they want.

Wait doesn’t work for me because it executes no matter what — it doesn’t check anything.

Thank you very much for your time. I will truly appreciate any help you can offer. This is for my final degree project and I don’t know what else to try…


Hi @Mart_16

If we understand correctly, you want to achieve some functionalities without using a button or finger?

For the hover and wait, there are 2 possibilities:

  1. Please check out the image below for a simpler approach:

  2. A slightly more complicated (but more flexible) approach would be by using a list as shown in this example: Delightex :: Wait after hover

We’re unsure if we understood your second request correctly, please let us know if this isn’t what you mean. But from what we understand, you don’t want to use the mouse or your finger to move through the scene, you want to hover over the circles and then jump over?

This should work by just using the When hovered - CoBlock.

Alternatively, you can use the same code provided in the example above
(When the circle is hovered, wait for 3 seconds and then do the jump).

We hope this helps but let us know if you have any further questions!