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