How do I open an app on the page it was closed

Get help using Construct 2

Post » Wed Apr 20, 2016 6:29 pm

Hello everybody :)

Whenever I've made HTML5 apps, I've always set them up so that when you close the app, and then re-open it, it automatically starts from the first page again.

It may seem like a stupid question, but I know that other apps (probably native and not HTML5) can do this, so here goes. When a user opens and app, is there a way they can go straight back into the page they closed the app on. So for example, if your app has 10 pages and the user exits on page 5, when they reopen the app, can it be opened on page 5? Or does it always have to go right back to the first page again?

Thanks
B
18
S
4
G
2
Posts: 77
Reputation: 1,588

Post » Wed Apr 20, 2016 9:09 pm

I'm going with the assumption that each page is a new layout. Each time you enter a new page save the page number to local storage. On start of the app check the local storage for the value and go to the page(layout).
B
33
S
8
G
2
Posts: 100
Reputation: 2,635

Post » Thu Apr 21, 2016 11:50 am

Thanks for the suggestion @thatserafimkid, I'll give that a try :)
B
18
S
4
G
2
Posts: 77
Reputation: 1,588


Return to How do I....?

Who is online

Users browsing this forum: David181, jorgmaquoi, SignalOne and 22 guests