Godot Version
4.2
Question
I want to set the sprite position to be on the rightmost after I click on the go back button. How do I fix this? Unfortunately, when I clicked on the go back button, the sprite position is on the leftmost.
4.2
I want to set the sprite position to be on the rightmost after I click on the go back button. How do I fix this? Unfortunately, when I clicked on the go back button, the sprite position is on the leftmost.
Without seeing any of your code, the only thing I can suggest is to set the position of the sprite in the button’s pressed() signal.
When I pressed go back button, the counting paper label also disappeared
What code are you using in your movement and button scripts?
func _on_go_back_pressed():
get_tree().change_scene_to_file(“res://sceneTrees/Scripts/1_st_floor_scene1/1_st_floor_scene1.tscn”) I use this code
You are changing the scene, there could be various things resetting here when the scene loads. Like, for example, if the player is part of the scene it can reset it’s position. Guessing here since there’s few info to go by.