Save games and resolution for smartphone?

Get help using Construct 2

Post » Sat Feb 22, 2014 7:16 pm

Hi all

I really can't figure out how to do this, I can't find anything on google neither anything on the forums that could help me!

I have created a game that I wan't to make for android phones, so I want to know:

How to save the state? I mean it's like a fake flappy bird game, so how to save the highscore on the phone?

How do I set a resolution for mobile screens? I mean there must be a way! Isn't there any way so it automatic scale to the size of every screen? You can't just type ''1280x720'' so it wount fit on other resolution screens... So how to set a resolution that fits for all android phones?

Please don't say ''look in the forum'' I have read almost all posts and tutorials and can't figure out how to do this!

Thanks.
B
2
Posts: 6
Reputation: 160

Post » Thu Mar 20, 2014 6:20 pm

Webstorage:

https://www.scirra.com/tutorials/526/ho ... -savegames

Comment on the tutorial from Ashley:
it should work on both iOS and Android - all platforms support WebStorage which is where savegames go (or IndexedDB if supported).
B
6
S
2
G
2
Posts: 16
Reputation: 1,153


Return to How do I....?

Who is online

Users browsing this forum: JDebstup and 30 guests