Multiple Variables activating everything

Hi. I’m trying to create a volcano eruption, where if you touch one of the cubes, you get transported to another scene. For some reason, whenever the camera collides with anything, it transports me to the scene anyway, even though it’s not the cube. Somebody, please help!

Hi @JayKee99,

You are using the wrong block.

Screen Shot 2021-11-08 at 10.21.44 AM

This is the block you need to use. The block you were using will check if it collides into anything.

-Blaizifying

Hi, I just want to say that I have hundreds of cubes and if I do it that way, I would have to enter each of the cubes individually, which would be near impossible!

HI @JayKee99.

You can make use of the variable in the “when camera collides with …” event CoBlock and check for the name of the colliding item. If the name of the colliding item matches (for example “dangerous”), you can then move your players to another scene. The code could look like this:

Below you can find a remixable space of this code in action.

Hope this helps!

2 Likes

It’s still not working! I’m not sure but here is the code.

Hi @JayKee99, could you share a remixable version of your CoSpace, so we can see what’s going on?

Geoff