You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
191 B
GDScript
10 lines
191 B
GDScript
2 years ago
|
extends RigidBody2D
|
||
|
|
||
|
var mouse_position = Vector2.ZERO
|
||
|
|
||
|
signal hit()
|
||
|
|
||
|
func _process(delta):
|
||
|
mouse_position = lerp(mouse_position, get_global_mouse_position(), 0.02)
|
||
|
look_at(mouse_position)
|