Change scenes doesn't work

Godot Version

4.2.1

Question

Hello, I tried to make my first changescenes following DevWorm's tutorial (if anyone actually knows about it)and it actually worked at first, I didn't have any problems and I could go to the other map easily. The problem is that when I continued making the code and tried to debug it, especifficaly in the part of the photo, it wouldn't let me change scene again and it kept not working until today. I need to solve this problem in order to continue the game and finish it for an important work, does anyone knows what to do? I'm just wirtting for recommendations or something to look at because I don't know where the problem is. If anyone has any idea of what could be going wrong or something, please write it. It will be a great help.

The tutorial I am following:

The part when it all started to work wrong:

The character needs to go through that door and pass to another map, it worked until I wrote the part of the photo above. Now it just goes away and nothing happens.

The script of the map where my character is:

The script of the map where my character has to go:

Help us to help you. Please post a sample project that shows the problem. We can’t read your mind, nor do we all know what tutorial you are speaking about.

1 Like

Thank you for your response. I’m sorry if I had cause any confusion with my post, I just don’t know where the problem actually is. I hoped if someone knowed the tutorial I’m saying it could be a little help to understand better what I’m asking about. I have just posted some other photos if is brings any help, I’m very new at this and I don’t have no one to ask about it. Sorry :frowning:

I think you should change
true to false on line 9
and false to true on line 14

1 Like

Thanks for your response! I tried it, but it still doesn’t work.

My mistake was that the script of the first world was not attached to the node of that exact world, so it didn’t work. Thank you anyways for your help! :slight_smile: