Hi! I’m going to be blatantly ignoring that post I just made and deleted bc I’m an absolute buffoon who realized their mistake literally .2 seconds after posting. Itchy trigger finger, I guess. Also sleep deprivation.
But!! Since I haven’t seen any other clock subroutine (other than that behemoth 650 line code, rip Lordirish) I made my own for keeping track of time when YOU’RE the one adding time. or whatever. If none of this makes sense just let me know and I’ll try again when I’m not tired.
*create hour 00 *create min 00
This code uses military time, since it’ll take a better coder than me to figure out the nasty AM/PM (or maybe me when I havent been up for 28 hours straight coding) So it will display like this: hour:min. Thankfully double zeroes and numbers starting with zero display properly!
Create a scene titled clock, and paste this code (i like to label mine just to be sure or maybe you’re supposed to idk i’ve got tetris syndrome with numbers now, what do i know?)
*label clock *if min = 60 *set min 00 *set hour +1 *if min > 60 *set min ((min - 60) + 00) *set hour + 1 *if hour = 24 *set hour 00 *return
Then whenever you add (+) to the hour and/or minute value (with a simple *set hour +1 or *set min + 13) and use *gosub_scene clock, it will make sure you’re displaying the right time!
I hope somebody finds this useful!
And for those who has seen me flailing and asking question after question and want to know how my game’s going, I got the rough alpha of my first chapter up! Wheeee! https://dashingdon.com/go/5929 (It’s really simple, but historically I suck at coding so I’m p proud of what I have so far)
I would love any feedback or design tips if you’ve gottem!