Hi, I want to change scene that when KinematicBody2D (Player) Touch Area2D , it will body_entred signal to player script where will be executed method in which is this to change scene: get_tree().change_scene("res://Levels/two.tscn")

But this will not change scene, but only restart current scene

Any help or it is bug?

Running MaC OS X Cataliana Godot steam version

Hi, I want to report maybe a bug in Godot 3.2 (steam)

I am making a platformer game (following tutorial), there was changing scene, but in Godot it only restarts current scene.

Steps I made: I made Area2D with collision box and animated sprite. I choose body_entered signal to call my method in player script which will change the scene. In method: get_tree.change_scene("res://Levels/two.tscn”)

Do you know what I am doing wrong or is it bug?

Welcome to the forums @Maratonec!

I merged the two topics together, since they were more or less the same thing. In the future, please try to avoid making two topics that are essentially the same, and instead just add additional information to the first topic.

As for the issue, I'm not sure right off. Which scene are you calling this from? If you are in level two when you call this script, then it will reload the level two scene. You'd need to change the method so it points to the next level. If you are in a different level, I would check two things: First, I would add something to level 2 that is different and obviously noticeable so you can visually see if the level has changed or not. Second, I would check the remote debugger after loading the scene and check the name of the root node in the scene. If the root node's name has not changed, then it is likely the same scene and the loading/changing of scenes is not working.

Yes, I am sorry for two question I thing the one wasn’t send so I make new. I am in my main scene one.tscn and I want to go to two.tscn The scenes are completely different each with different possitions of tiles in tile map. The method for me is completely acting same as a scene reload method so maybe bug.

@Maratonec said: Yes, I am sorry for two question I thing the one wasn’t send so I make new.

No worries!

I am in my main scene one.tscn and I want to go to two.tscn The scenes are completely different each with different possitions of tiles in tile map. The method for me is completely acting same as a scene reload method so maybe bug.

Strange. Does the Godot console show anything? It does sound like a bug or something not being configured/loaded correctly, but I'm not sure what would be causing it.

@TwistedTwigleg said:> Strange. Does the Godot console show anything? It does sound like a bug or something not being configured/loaded correctly, but I'm not sure what would be causing it.

No console isn’t showing anything. So maybe I found bug in 3.2?

@Maratonec said:

@TwistedTwigleg said:> Strange. Does the Godot console show anything? It does sound like a bug or something not being configured/loaded correctly, but I'm not sure what would be causing it.

No console isn’t showing anything. So maybe I found bug in 3.2?

It is definitely possible. If you can, I'd try to make a minimum replication project. That way, those looking at the bug can see if they can also reproduce the issue with the given project. If the bug is reproducible, then it should be easier to find a fix.

Hi, I maybe found a solution, but I will need to test it when I came home.

It is maybe because I have method that restarts current scene when player is not on scene and Godot is maybe hiding objects gradually when changing scene. (Firstly player, then tiles) So when player is hidden it restart the scene. This is maybe causing it. Thanks for help! I will say if it was this when I will test it.

Maratonec

3 years later