Hi everyone! I am coding a mini game in which there are two pictures on the screen and the player can tap on either one to view it (by using tappable overlays) but after viewing that particular picture, they cannot view it again. After viewing both the pictures an arrow appears on the screen and when the readers tap on it, they are transported to the rest of the story.
here is what the script looks like:
label first_set_of_photos
&speechbubble is 219 275 to 0%
if (PIC =12) {
goto arrow_tappable_turn_pic
} else {
continue
}
tappable
âPIC_1â {
if (PIC =0) { @PIC =1
goto picture_1
} elif (PIC =2) { @PIC =12
goto picture_2
} elif (PIC =1) { @speechbubble is 219 275 to 78%
NARR
You have already watched this pictureâs memory.
goto first_set_of_photos
} else { @speechbubble is 132 252 to 74%
NARR
You have watched both the pictures please click the arrow to proceed.
goto first_set_of_photos
}
} âPIC_2â {
}
label picture_1
NARR
Here is the scene of picture 1
label picture_2
NARR
Here is the scene of picture 2
The problem that arises here is that when I click on them in the previewer, it shows âYou have watched both the pictures please click the arrow to proceed.â (the line that is there in the else condition) I have checked that the point of âPICâ are 0 but still it is showing the else condition instead of what is written in the condition âif(PIC =0)â.
Can anyone please help me rectify it? Any help is appreciated.
-Love Infinity
If you are watching it on the previewer, you have likely already played through once so you have accrued all of the points. You need to reset it within your portal playthrough by going to Story Modifiers â Character Points â PIC â PIC 0.