Link to my project file so far: drive.google.com/file/d/1rJ8leDVFRthd8AYcR2uff6x8tf7ljnVh/view
I'm relatively new to C3, having experimented briefly and sporadically, and I'm now trying the strategy of "Make a thing, and only research/get help with specific steps, rather than following a tutorial" to see if it sticks better!
I'm trying to make a virtual pet similar to a tamagotchi, where real time passing causes it to continue aging/growing/dying even when closed.
Currently, I've made an (accelerated) egg stage, where the egg first just needs time to grow and heat to stop it dying, then needs comfort (tapping when it is restless) to build up in combination with being warm to gain energy, and then the egg would hatch when you keep the energy and warmth correct for long enough (but right now it just says you won and pauses the game).
I've implemented the bog-standard save/load system, and my googling suggested using the 'unixtime' expression to figure out the number of milliseconds since last saved.
I'm sort of stuck on that because in my test, subtracting the current unixtime on load from the saved unixtime is always outputting a negative number that seems to always be the same, -17xxxxxxxxxxxxx.
So my question is really, how do I do this right, and if I'm on the right track, what am I missing here?
Thanks!