|
Post by Red Moon Entertainment on Jul 15, 2016 11:49:40 GMT
Please reply. I want to make game, a long game. So I need to know everything 'bout this.
|
|
|
Post by Power Supersport on Jul 24, 2016 12:18:29 GMT
NicusorN5, it's OUT_0, not IN_0... You cannot set input values... You can only set output...
|
|
hawk
Full Member
Posts: 69
|
Post by hawk on Aug 16, 2016 4:30:09 GMT
No Red Moon Entertainment you don't need the spaces, they're just their to make it easier to read the code. The way power has written the code is the standard way of formatting it.
|
|
|
Post by NicusorN5 on Aug 16, 2016 7:29:08 GMT
NicusorN5, it's OUT_0, not IN_0... You cannot set input values... You can only set output... Always doing this mistake ...
|
|
|
Post by Red Moon Entertainment on Oct 26, 2016 13:01:27 GMT
As I said, are spaces before codelines needed?
|
|
|
Post by Red Moon Entertainment on Oct 29, 2016 10:54:15 GMT
Sorry hawk I read your post just now
|
|
|
Post by Red Moon Entertainment on Oct 29, 2016 20:20:28 GMT
What's "MyFile.txt"? What have I to do? Just add a Script and copy the one wrote by Nicur or Power?
|
|
|
Post by Red Moon Entertainment on Dec 3, 2016 13:32:53 GMT
Here is the code you need... float value; void Main () { // Read if (iInitializing()) { int Read = iFileReadOpen(".\\MyFile.txt"); value = iFileValueRead(Read); iFileClose(Read); }
// Write if (iDeinitializing()) { int Write = iFileWriteOpen(".\\MyFile.txt"); iFileValueWrite(Write, write, true); iFileClose(Write); } } value is the float you need to read and save... What have I to write instead of MyFile.txt? What route is needed?
|
|
|
Post by NicusorN5 on Dec 3, 2016 18:27:45 GMT
MyFile.txt is the file where you want to save the datas.
If this little script seems too complicated to you , you can use the Counter object (works only using numbers (ints and floats).
|
|
|
Post by Red Moon Entertainment on Dec 3, 2016 19:22:46 GMT
You mean, using a counter to save tha game data? Anyway, I don't know anything 'bout scripting ... How to learn a little?
|
|
|
Post by Red Moon Entertainment on Dec 14, 2016 14:49:40 GMT
How to make two different options (load and save the game) when there's one script? Andmรฌ, how to use a counter to save the game?
|
|