Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | zoenel |
so i keep getting the error Parser Error: The method “angle_to_point” isn’t declared in the current class when i’m trying to run my game. here’s my code:
func get_input():
var mouse_position=get_local_mouse_position()
var angle=angle_to_point(mouse_position)
print(angle)
so what this code is trying to do is its trying to get the angle of the location of the cursor based on the player sprite but i can’t do that due to the error.