Update test project for Godot 4.3 (#159)
Co-authored-by: Andi Susanto <and1zero@users.noreply.github.com> Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -5,7 +5,7 @@ signal start_zoom_out
|
||||
const ZOOM_DELTA: float = 0.2
|
||||
const MOVE_DELTA: float = 0.353
|
||||
|
||||
onready var camera: Camera2D = $Path2D/PathFollow2D/MenuCamera
|
||||
@onready var camera: Camera2D = $Path2D/PathFollow2D/MenuCamera
|
||||
var camera_zooming: bool = false
|
||||
|
||||
func _process(delta: float):
|
||||
@@ -19,7 +19,7 @@ func zoom_out_proccess(delta: float) -> void:
|
||||
else:
|
||||
self.camera_zooming = false
|
||||
|
||||
$Path2D/PathFollow2D.unit_offset += delta * MOVE_DELTA
|
||||
$Path2D/PathFollow2D.progress_ratio += delta * MOVE_DELTA
|
||||
|
||||
func _on_Main_start_zoom_out():
|
||||
self.camera_zooming = true
|
||||
|
||||
Reference in New Issue
Block a user