Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func _on_Area2D_area_entered(area: Area2D) -> void:
- if area.is_in_group("PLayer"):
- get_tree().change_scene("res://sences/World" + str(int(get_tree().current_scene.name) + 1) + ".tscn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement