Posted March 09, 2024 by songofabumblebee
I was wondering how to make my scenes more interactive. So this scene has cubes which can be interacted with. It was done using Godot's Area node combined with a CollisionShape. That makes something similar to a Trigger from the Source engine, which can be used to cause actions when something enters the region. There are a couple scripts that react to specifically the player and create the visual "Press E to interact." as well as accepting that input to change the cubes' colors. There isn't much to this, but it felt complete, and when it feels complete I upload it.