So would storing the, for me, right value in localStorage.stars be as simple as writing:
localStorage.stars = “1”;
in scene one (named 1),
localStorage.stars = “2”;
in scene 2, and so on.
Or is that too simple?
I’ve been trying to get the hypeDocument.showSceneNamed()-code working for a while now with no luck.
I have tried both
hypeDocument.showSceneNamed(4)
and
hypeDocument.showSceneNamed(localStorage.stars, kSceneTransitionCrossfade, 1.1);
having declared localStorage.stars = “4”;
But my widget doesn’t want to jump to my fourth scene (which is named “4”). Or isn’t it enough to name the scene?
Time to go to bed, I’ll continue after work tomorrow, thanks for all the pointers so far! It’s getting a lot clearer!