Dynamically select localstorage item per layout?

Get help using Construct 2

Post » Mon Feb 08, 2016 6:40 pm

I want to use one event sheet, and I want to access a localstorage item in the events, using one event for all layouts, but a different item for each layout. I was thinking of naming each layout 1,2,3,4 etc, and using

Check item "bestscore"&LayoutName exists

to use a different localstorage item, depended on which layout it is. Is that the correct way of setting/calling the item? I assume they would then be named and checked at "bestscore1", "bestscore2", etc? I just want to ask before I try it, in case I'm scrabbling around trying to make sense of things!
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Mon Feb 08, 2016 11:11 pm

Yes, it does work.
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, ColombageEnPLS, repkino and 12 guests