Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: Schleckenmiester on September 18, 2019, 12:19:39 AM
-
Hey,
I'm making a game on android and I'm making a sorta Pet Hotel tycoon, but the Get System Date Time action is crucial and it doesn't seem to work on mobile. It works on PC just fine but when I open my app on my phone nothing's going through. Is there a fix for this?
-
It's possible this action is only meant to work on a computer.
You may need to access the native functions of the Android phones and tablets and this might require acquiring a plugin or adding a cs script somewhere in your project and call its method.
Also, if getting time is important for your game as to deliver daily rewards, you absolutely need to use an external server to ping otherwise the user can trick the game.
Now this sounds complex but there are many solutions out there that actually provide easy ways to buy an almost already set up game server space with very setup required. You'll have to subscribe to a monthly payment though.
-
Hi,
system date time works on mobile.
can you make a simple scene to output the raw result of that action? what do you get?
Bye,
Jean
-
Maybe the problem he has in one phone in particular?
-
Well I tried my hands on get system date it does work but somehow when I am trying to save current date as string & trying to compare it with tomorrows date it won't work using string compare ?
Can anyone put any light on it ?
-
I do this, but I store and compare as a float or int.
-
Sorry for late reply,
But by default the "Get Time Span Between Date" store value in float format but comparing float format working on desktop but not on mobile, I have even tried on different mobiles but still no result.
-
Hi.
Maybe the way you get the 'date' value?
i have used "Get Time Span Between Date" on some of my old mobile projects and it was working then.