Godot Version
Godot 4.8 (rcl)
Question
I’m trying to make a POI defense, beat 'em up style game with a similar feel to Brotato.
Since mine is entirely melee, i thought it would be a good idea to make an indicator that shows the direction you’re melee-ing in, which is the mouse direction. I use a Polygon2D for that.
It works fine, but there seems to be an offset from the mouse that I don’t know how to deal with.
Here’s the scene tree;
and the code;
extends CharacterBody2D
func _physics_process(delta: float) -> void:
%IndicatorSprite.look_at(get_global_mouse_position())
