0 votes

I joined a game jam, I tried to make a 2d topdown rpg it works well, but I can't change the scene like different maps, I tried to use area 2d to change the scene

heres the script:

extends Area2D

onready var area = $CollisionShape2D

func onEntryHallwaybodyentered(body):
gettree().changescene("res://World/room/hallway.tscn")

sorry if this question was stupid, I'm just a beginner, Sorry

asked May 7 in Engine by Jujo (12 points)

Well this should work, could you upload more of your code ?

Did you make sure the signal body_entered is connected to the callback-function?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.