Eye follows in level 06
This commit is contained in:
parent
82ed2d5cf2
commit
781fbaca02
@ -6,6 +6,8 @@ onready var NEXTSCENE = "res://Levels/Level07.tscn"
|
|||||||
onready var WinMess = $Messages/Win
|
onready var WinMess = $Messages/Win
|
||||||
onready var EndTimer = $End
|
onready var EndTimer = $End
|
||||||
onready var FirstTime = $Timer
|
onready var FirstTime = $Timer
|
||||||
|
onready var Eye = $RayCast
|
||||||
|
onready var player = $Player
|
||||||
|
|
||||||
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
onready var balls = $"Player/HUD/PlayerLayer/ActualHUD/Balls"
|
||||||
onready var rem = $"Player/HUD/PlayerLayer/ActualHUD/Remaining"
|
onready var rem = $"Player/HUD/PlayerLayer/ActualHUD/Remaining"
|
||||||
@ -15,6 +17,9 @@ func _ready():
|
|||||||
balls.hide()
|
balls.hide()
|
||||||
rem.hide()
|
rem.hide()
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
Eye.look_at(player.transform.origin, Vector3.UP)
|
||||||
|
|
||||||
|
|
||||||
func _on_Enemy_dying():
|
func _on_Enemy_dying():
|
||||||
enemycount -= 1
|
enemycount -= 1
|
||||||
|
@ -141,9 +141,6 @@ text = "You're safe."
|
|||||||
[node name="End" type="Timer" parent="."]
|
[node name="End" type="Timer" parent="."]
|
||||||
wait_time = 3.0
|
wait_time = 3.0
|
||||||
|
|
||||||
[node name="Eye" parent="." instance=ExtResource( 8 )]
|
|
||||||
transform = Transform( 0.353468, 1.72239, 9.84421, 6.04987, 7.8035, -1.58257, -7.9545, 6.01156, -0.766195, 0, 56.455, -68.8373 )
|
|
||||||
|
|
||||||
[node name="InfoScreen" parent="." instance=ExtResource( 9 )]
|
[node name="InfoScreen" parent="." instance=ExtResource( 9 )]
|
||||||
transform = Transform( -0.990268, 0.139173, 8.70901e-08, 0.138644, 0.9865, 0.0871557, 0.0121296, 0.0863076, -0.996195, 0.0301886, 1.47109, 7.4719 )
|
transform = Transform( -0.990268, 0.139173, 8.70901e-08, 0.138644, 0.9865, 0.0871557, 0.0121296, 0.0863076, -0.996195, 0.0301886, 1.47109, 7.4719 )
|
||||||
text = "Please...
|
text = "Please...
|
||||||
@ -180,6 +177,12 @@ light_energy = 5.0
|
|||||||
shadow_enabled = true
|
shadow_enabled = true
|
||||||
shadow_color = Color( 0.431373, 0.384314, 0.384314, 1 )
|
shadow_color = Color( 0.431373, 0.384314, 0.384314, 1 )
|
||||||
|
|
||||||
|
[node name="RayCast" type="RayCast" parent="."]
|
||||||
|
transform = Transform( 25, 0, 0, 0, 25, 0, 0, 0, 25, 0, 60, -100 )
|
||||||
|
|
||||||
|
[node name="Eye" parent="RayCast" instance=ExtResource( 8 )]
|
||||||
|
transform = Transform( -0.0121812, 0.00447538, 0.499832, 0.0226399, 0.499472, -0.00392041, -0.499339, 0.0225368, -0.0123709, 0, 0, 0.478764 )
|
||||||
|
|
||||||
[connection signal="timeout" from="Timer" to="." method="_on_Enemy_dying"]
|
[connection signal="timeout" from="Timer" to="." method="_on_Enemy_dying"]
|
||||||
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
|
[connection signal="timeout" from="End" to="." method="_on_Win_timeout"]
|
||||||
[connection signal="timeout" from="InfoScreen/Sparks/Timer" to="InfoScreen/Sparks" method="_on_Timer_timeout"]
|
[connection signal="timeout" from="InfoScreen/Sparks/Timer" to="InfoScreen/Sparks" method="_on_Timer_timeout"]
|
||||||
|
Loading…
Reference in New Issue
Block a user