I’m making a first person 2d point and click adventure deckbuilder horror game inspired by weirdcore and Inscryption, but I can’t figure out how to make the NPCs and interactables. Here’s a mockup of what I’m thinking:
If it’s possible, I’d also like a tip on how to make a glowing outline when the mouse is hovering over any thing interactable to indicate that it can be interacted with.
If your characters and interactables inherit from Sprite2D, you can use get_rect to detect if the character/interactable has been clicked on. To constantly check the mouse position (e.g. for the purpose of detecting whether the mouse is hovering over something), you could use get_viewport().get_mouse_position() inside _process(). A glowing outline can be achieved by means of a shader (example.)
It’s probably a bit more involved if characters and interactables can visually overlap each other.
Tips on how to make the outline shader fade in and out? (sorry if I’m asking a whole lot, I’m new to Godot and a lot of the tutorials I’m finding online just aren’t sticking- ^^')
Depends on your shader code, if you used the example outline shader posted before then you may change it’s color uniform, you could use an AnimationPlayer to increase or decrease it’s alpha over time
You can rename any node, the names don’t particularly matter they only have to match if you are using them in code. The AnimationPlayer will try to update automatically when nodes are renamed.
I don’t know what you are trying to do or why it’s not working, you must explain what isn’t working. Can you share your new code? If you believe the scene tree is relevant you should share a screenshot of that too.