Letting player choose whether to use pannable feature or not

Hello beautiful helpers of Episode!

Currently I’m writing a story in which I want to let the player be able to choose whether or not they want to use the pannable feature (that allows them to move the background with their finger), as well as the use of tappable overlays.

I wanted to let the player choose before a pannable scene if they wanted to use it or not, because I am aware of the problems some users have (e.g. ipad users).

MY QUESTION IS HERE:

So, I wanted to ask if anyone could possibly help me in being able to code for using the pannable feature and for not.

I hope that makes sense :slight_smile:
Thank you <3

1 Like

label choice_tappable
NARRATOR
Do you want to use tappable and pannable features?

choice
“Yes” {
NARRATOR
Are you sure you want to use them?

choice
“Yes” {
NARRATOR
Thank you.
gain yes_tappable
} “I changed my mind.” {
goto choice_tappable
}
} “No” {
NARRATOR
Are you sure you don’t want to use them?

choice
“Yes” {
NARRATOR
Thank you.
gain no_tappable
} “I changed my mind.” {
goto choice_tappable
}

Then when you have a tappable/pannable:

if (yes_tappable) {
#code with tappable/pannable
}
if (no_tappable) {
#code without tappable/pannable
}

1 Like

Awesome, thank you so much legend <3
I just had to put an extra } at the end of…

} “I changed my mind.” {
goto choice_tappable
}
}

…because it said it had a missing closing bracket.

Yes, you’re right :woman_facepalming:

Closed: Marked as solved by thread op :v: