Godot Version
`v4.2.2
Question
Hello epic game devs. Im working on my first godot project ever.
I have this code to make a cutscene that shows the player a portal opened somewhere in the level. The first half of it works perfectly but for some reason i cant go back to my player and the game stays on the other camera. This code is probably a mess so i really need help with finding whats going wrong.
(JacintoCube is just the CharacterBody3D node)
(Sorry for bad english :])
quick edit: i just noticed the “endlevel1_cutscene” animation that moves the camera a bit isnt triggering either. I dont know what im doing wrong.
func _process(delta):
if Global.fishlvl1 == 5:
Global.can_move = 0
$AnimationPlayer.play("fade")
await get_tree().create_timer(0.5).timeout
$CamaraPortal.make_current()
await get_tree().create_timer(0.7).timeout
$AnimationPlayer.play("endlevel1_cutscene")
$Portal.process_mode = 0
$Portal.show()
$Explosion/Debris.emitting = true
$Explosion/Fire.emitting = true
$Explosion/Smoke.emitting = true
await get_tree().create_timer(3.0).timeout
$JacintoCube/CameraOrigin/SpringArm3D/Camera3D.make_current()
Global.can_move == 1
func _ready():
$Portal.process_mode = 4
$Portal.hide()