Save Scene Location (Local storage maybe?)


#1

Hi Everyone!

I am working on an “app” I’d like to put in iOS, where I want the hype project to remember the location (and maybe a score) so when the user returns to the app, they just pick up where they left off. Without having to click a load button.

Here is what this scenario would look like, “The user opens the ‘app’ and navigates to Scene 5. They close the app and return to it 2 days later. When they open the ‘app’, Scene 5 automatically loads up and let’s them pick up where they left off.”

Is this possible? If so, how would this work?

Thanks!


Bookmarks in presentation?
(Hans-Gerd Claßen) #2

here’s a nice library to simplify the usage of localStorage


#3

Thank you for your quick reply!

I understand the concepts of local storage, however I’m a complete novice to javascript and html. Would you happen to know where I can find an example of something like this in a hype project?

Thanks!!

Logan


#4

For example, i’d like to do something like this "http://forums.tumult.com/t/resume-a-scene-from-its-last-played-time/1139” but when the user opens the app.


(Medioni) #5

Hello,
Have you find the answer ?


#6

Hi @Fmedioni

Here is an example of using localStorage to store the scene.

scene-localStorage.zip (90.9 KB)


(Kai) #7

Many thanks, your Example helped me a lot!!!