Advertisement
Cruddier

Next Level

Feb 10th, 2021
2,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func _on_Area2D_area_entered(area: Area2D) -> void:
  2.     if area.is_in_group("PLayer"):
  3.         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