You could use the Seconds since 1970 block (located in the device block section). You can then calculate the difference.
I don’t know how long your pet health is, I’m guessing a day?
If so there are 86400 in a day, so your health bar would calculate the difference from the last stored time stamp and the current one, in seconds since 1970.
Ay Jared, cool app that’s on the front page! About that username… I’m an industrial design student from NUS. My group project is about creating a virtual pet, so we settled on turning one coronavirus cell into a virtual pet that can be fed DNA strands, stroked with q-tip while it dispenses local updates (extracted from API) on daily infected count, etc.
Hi, I’m trying to create an app that does a similar purpose, but I’m not sure how to implement the seconds since 1970 into blocks, could someone help me with this?