How do I check if a user has played the tutorial level?

Get help using Construct 2

Post » Fri Aug 01, 2014 3:58 pm

(ANSWERED)
Hi all,

I'm trying to create a tutorial level for my game, and I would like the game to prompt the user to try it if they have not done it before. I can think of a pretty simple trick to detect that using a boolean variable that toggles once the user has played the tutorial level, but the challenge for me is that I want this game to work on a mobile device, and as such I would like the detection to persist even through the game closing. Would achieving something like this involve storing data on the device itself or something like that? I have no idea where to start with that really, but any assistance would be appreciated.

Thanks :)
Last edited by dmakinde on Mon Aug 04, 2014 2:25 pm, edited 1 time in total.
B
5
Posts: 29
Reputation: 733

Post » Fri Aug 01, 2014 4:01 pm

Use the boolean approach and store its value in a Webstorage object.

This one page tutorial teaches the basics of it:
https://www.scirra.com/tutorials/266/we ... nformation
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
19
S
5
G
2
Posts: 534
Reputation: 3,235

Post » Mon Aug 04, 2014 2:24 pm

Thank you! I haven't gotten round to implementing the tutorial check yet, but with the webstorage object I managed to create a way to store your high score locally. I can't imagine the methodology to implement a tutorial would be too different, so I'm going to go ahead and mark this as answered. Thanks again :D
B
5
Posts: 29
Reputation: 733


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Blendi1223 and 49 guests