Using the device time...
digitalzero
Member, BASIC Posts: 639
So I know there's a way to use the time on your phone device but I have never used it before! Today is the day though!!!! What I wanna do is......
When the time is between 6am and 7pm then it changes image to a day image and then from 7pm to 5am it has the night image but is there any way that I can interpolate the image or maybe an interpolate through the device timeeeee that would be awesome balls!!
Comments
You can simply check the time, and when it's 6 simply interpolate the daytime image from alpha 0 to alpha 1.
When hour =>6
--Interpolate alpha to 1 (over however many seconds you want).
Thanks @Socks !
How are you able to determine am and pm?
I've never used/accessed the device time but I'm going to guess its a 24 hour clock?
http://militarytimechart.com/
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
6 = 6am
18 = 6pm