...or i am using it in the wrong way: func _ready(): if file_exists(filepath): game_load() in this code i get the error: Invalid call. Nonexistent function 'file_exists' in base 'Node (mynode.gd)'. ...i will check if the file already exists, please load it... Hi again and thank you again Neo

I think file_exists is a function in File, so you’d need something like this:

func _ready(): var temp_file = File.new() if temp_file.file_exists(filepath): game_load()

@TwistedTwigleg said: I think file_exists is a function in File, so you’d need something like this:

func _ready(): var temp_file = File.new() if temp_file.file_exists(filepath): game_load()

Again Thank you :) Neo