... you could also use the system expression timer ... timer returns the time passed since start of the game in milliseconds <img src="smileys/smiley4.gif" border="0" align="middle">
But I admit, I wasn't very clear on that.
Here is the link to the Wiki, btw: Construct Wiki
Thanks for clearing that up with the very helpful explanation. I usually take posts like that and save them to a word file for future reference. : D
I wasn't entirely sure if I needed one or two variables (apparently 3), or if there was a behavior or object I should have been using. Tomorrow when i am at my laptop with the CAP project file I'll begin to sort things out.
I'm sorry but I don't quite understand. Is it the kind of input (name typing, or selecting letters per digit by using up/down/left/right) you are concerned of, or the actual values to store?
Yeah, it's just name input. But it's like the old arcade inputs, where there are three spots, in which you can put any letter or number you like. Like:
_ _ _
can be
B T D
or
6 Y T
or whatever you want to input.
Selecting letters. I was thinking maybe use an array to store all of those selections, in some way.
What I was thinking was that each spot on the array corresponds to a PV- let's call it "NameEntry"
1 on NameEntry corresponds to A, 2 to B, and so on.
So for the three blank spots, scrolling down would increase the value of NameEntry, thus scrolling through the letters/numbers, before resetting back to A.
Does that make sense?
They both are relatively easy. Using ini-files you have all of the informations stored in 1 file, while arrays may use 2,3 or more files, depending on the informations to save, but are more easily sortable. There are two other possibilities: You could also use a hash table.
Arrays and hash table save their data in a binary format (non human readable), while ini files are simple text files. So you don't really need a crc32 protection for arrays/hashtables.
Last, but not least you could use 's', a fantastic plugin by lucid. Sorting is easy as well as saving/loading. Plus, all data is not only saved in binary format, but encrypted also, without the need for extra code.
It seems with Construct the possibilities are endless :)
While I'll definitely take a look into S plugin, and maybe play around with INIs or hashes for a future project (that I might as well finish), I think I'll try to parse out arrays, unless I prove to stupid to figure them out (it took me like a week just to finally visually/mentally GRASP just what an array was, ha ha).