So I thought the best way would be to read all ReadMe of Game Template, unfortunately I didn’t find all answers there.
I hope you don’t mind if I ask them here
- How is text in Label node for TUTORIAL_1 and TUTORIAL_2 updated ?
( I see there only code for detect player entry/exit
extends Area3D
@onready var canvas_layer: CanvasLayer = $CanvasLayer
func _ready() -> void:
body_entered.connect(_on_body_entered)
body_exited.connect(_on_body_exited)
func _on_body_entered(body: Node3D) -> void:
if body is Player:
canvas_layer.show()
func _on_body_exited(body: Node3D) -> void:
if body is Player:
canvas_layer.hide()
Update: I partially figure out it use rick_o_shea - localization.csv to show certain text on screen
)
- I’m trying to understand a bit more this code from Tree, why do we tween position.z by 0.0 ? couldn’t we just remove it complety from scene or change visibility ?
class_name DetailedTree extends StaticBody3D
@export var score_multiplier: int = 25
# The amount of ricochets needed to free the cat from the tree.
# -1 means there is no cat to rescue.
@export var rescue_threshold: int = -1
# The cat to rescue
@export var cat: Cat
@onready var hit_sound: AudioStreamPlayer3D = $HitSound
@onready var target_mesh: MeshInstance3D = $Target_Mesh
@onready var target_mesh_2: MeshInstance3D = $Target_Mesh2
func _ready() -> void:
if rescue_threshold > 0:
target_mesh.mesh = target_mesh.mesh.duplicate()
target_mesh_2.mesh = target_mesh_2.mesh.duplicate()
else:
target_mesh.hide()
target_mesh_2.hide()
func hit(ricochet_amount: int) -> void:
if rescue_threshold >= 0 and ricochet_amount >= rescue_threshold and cat:
cat.rescue(ricochet_amount)
_hide_meshes()
hit_sound.play()
func _hide_meshes() -> void:
var time := 0.1
var tween := create_tween().set_parallel()
tween.tween_property(target_mesh, "position:z", 0.0, time)
tween.tween_property(target_mesh_2, "position:z", 0.0, time)
I manage to enable Game Mode for the your game by tweaking a settings of export and redoing UUID’s - it not throwing no longer error’s about resources.
First you could see it didn’t worked on Mac either, and it’s not naming of folder or assets .
Here is short walk through it :->
It something to do with scaling or anchoring I believe, as you might see it in this demo, similar like in Lost & Found - Animal Rescue (3D Platformer / Collectathon) | In Development - #55 by amarc