6 lines
143 B
GDScript
6 lines
143 B
GDScript
extends Camera2D
|
|
|
|
func handle_offset(dir: Vector2, delta: float):
|
|
var desired_offset = dir*500
|
|
offset = offset.lerp(desired_offset, delta*2)
|