Syetti so i made a rigid body with a collider when my character touches it it should be transfer the character to the next scene heres my code (dont mind the indents): extends RigidBody2D func _ready(): set_fixed_process(true) func _fixed_process(delta): var bodies = get_colliding_bodies() for body in bodies: if body.is_in_group("Character"): get_tree().change_scene("res://Sworld.tscn")
Kiori You need to have contact monitor enabled(on the RigidBody), and contacts reported at 1 or more for this to work as is. Also, get_colliding_bodies() can be used directly inside of the for loop.