Problem with item in Godot3D. The game "Butterfly Kindergarten"

Ok now post the screenshot of your game running when you’re looking at the light with the engine output window visible.

I look to flashlight buth print is still not change

Enable “Visible Collision Shapes” in the Debug menu and post the screenshot again.

And add a debug directional light to the scene so we can see things.

Oh, and you need to enable collision with areas in ray cast’s properties.

I turned on the Debug menu but I can’t find Visible Collision Shapes

It’s right there

1 Like

Hmm. He didn’t mark the flashlight with blue, but he did mark the decorative chest of drawers at the beginning of the scene, which means that the ray cast is working or the object of the flashlight doesn’t have the right border, I probably marked the wrong mode or could have deleted it.

No, it turned out that everything was set up correctly, but the flashlight is not marked in the frame.

normalized, i waiting you

Make sure that CollisionShape3D node in the flashlight scene has a shape assigned. Also make sure that you’ve actually placed that scene iron the main game scene, and not only the imported asset.

2 Likes

They are we go! Raycast notices an object and immediately offers us an action button that we can click to pick it up. The next step is to make it so that when we click on the object, it is picked up and the button disappears when we move away from the object. The best part is that Raycast works

Great. I was afraid we’d reach post 100 before it happens :rofl:

1 Like

If you’re here, then I’ve been waiting for you for a long time, this is not the end with solving the tasks of the item up script.

Oh. I’m sure it’s not the end of the problems but I’d deem it the end of this thread. If you have a new question, start a new thread.

1 Like

Let’s move on to a new topic, please. I’m having a small problem right now because I’ve almost done everything correctly in terms of learning godot game.