Two Basic Issues - Player Names & Saving Data
So at the beginning of my game I've got two objects A) an edit box and B) some formatted text that says "Name: ". I want to have the player enter their name and press enter to confirm the choice. Once this is done it should display (the formatted text to read) "Name: <inserted value>"
In the event editor I have done the following:
On start of frame set focus on the edit box
Upon pressing enter cause the edit box to turn invisible and on the formatted text "Add text" --> retrieved value from the edit box.
This doesn't seem to work to move the text from the edit box to the formatted text. Any suggestions
Lastly any suggestions to create and save values using the file object?
Thank you
Re: Two Basic Issues - Player Names & Saving Data
1. Why are you using a formatted text object? It does not work very well, and you'd be better off using the string object.
2. The file object cannot modify files. It can create, move, and delete files, along with some other things, but it does not modify the contents of files. You will need to find an extension that suits your needs and use it to save and load information.
Re: Two Basic Issues - Player Names & Saving Data
You can actually append to text files if you want to, but thats it for modifying. ;)
Re: Two Basic Issues - Player Names & Saving Data
Yeah I would also suggest the string object... for that it's as simple as:
Upon pressing "Enter"
- set alterable string to "Name: "+Edittext$( "Edit Box" )
For saving values, I'd recommend the INI object.