So I'm trying store some data (scene locations) in text file, So i can load it when my game runs.
var fp:File = File.new()
while not fp.eof_reached():
var l = fp.get_line()
I created enemy_list.txt beforehand. I am not able to import it inside my project, so it is visible inside the editor.
I just placed the text file inside the Enemy/ folder. But the code only works on editor not when build.
I have looked in the Resources class there is a sub-class TextFile, which I created but there is not any method in the class to access the data.
Is there is any other way to achieve this?
Thank you for taking your time.