Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Thanks! I can't find any way to use the SceneTree. Please tell me how i can find it!

Or maybe i can

You can call `get_tree()` from any node, and it will return the SceneTree https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method...

I made it print the file path, but i could not program it to get rid of the "[" and "]". How did you do it?

You can see Pixelorama's source code on GitHub. This, specifically, can be found in OpenSave.gd, in the handle_loading_files() method. https://github.com/Orama-Interactive/Pixelorama/blob/master/src/Autoload/OpenSav...

(1 edit)

I managed to do it like this:

func FilesDropped(files, screen):
    var file = File.new()
    file.open(files[0], 1)
    $FileText.text = file.get_as_text()

But i couldn't have done it without your help! Thank you!

Oh, and can you try to fix the error where it doesn't save correctly? I use this a lot and it happens constantly.

"Error: can't save file. Error code: 23."

Are you using v0.8 or v0.8.1?

v0.8. Did you fix it in the latest version?