Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ispilantebrusli |
Hi, im trying to make a save/load menu for my game.
For example, im in the current level, press ctrl+s to save and then pops up a menu with multiple slots (you can choose in which one u want to save it), how can I get the path of the current level ?
Idk how to post the image directly here, im sorry
get_tree.current_scene.filename
To get the path of the current scene.
If you want to access previous scenes, everytime you save a scene, save the filename of that scene to a list or dictionary. And then you can access it through the list/dictionary.
TheJokingJack | 2021-08-22 15:54