Why is the flashlight looping?


#1

I don’t get why the flashlight is looping and yet the Code is fine any help?
label mainveiw
INT. ANNIKA APARTMENT 2 - DAY with LEFT to 0.702 3 18 in zone 2 with PAPER to 0.188 270 20 in zone 2 with TABLE to 1.563 97 9 in zone 2 with FLASHLIGHT to 0.992 196 3 in zone 2 with CLUEBAR1 to 1.062 4 469 in zone 2 with CODE to 0.142 247 24 in zone 2
@zoom reset
@overlay CLUEBAR1 to layer 1
@cut to zone 2
@YOU stand screen center in zone 2
@overlay TABLE opacity 0 in 0
if (PAPER) {
@overlay PAPER shifts to 174 484 in 0 in zone 2
@overlay PAPER opacity 1 in 0
@overlay PAPER to layer 2
}
if (FLASHLIGHT) {
@overlay FLASHLIGHT shifts to 100 480 in 1 in zone 2
@overlay FLASHLIGHT scales to 0.644 0.644 in zone 2
@overlay FLASHLIGHT opacity 1 in 0
}

@zoom reset
tappable
“LEFT” {
@overlay LEFT clear
@pan to zone 1
goto LEFT
}
“TABLE” {
goto table
}

label table
@zoom on 640 1 to 171% in 1
@overlay BACK create
@overlay BACK shifts to 146 17 in zone 2 in 0
@overlay BACK scales to 0.228 0.228 in 0
@overlay BACK opacity 1 in 0

    NARRATOR
Collect evidence

tappable
“FLASHLIGHT”{
gain FLASHLIGHT
@zoom reset
@overlay BACK clear
@overlay FLASHLIGHT to layer 2
@overlay FLASHLIGHT shifts to 100 480 in 1 in zone 2
@overlay FLASHLIGHT scales to 0.644 0.644 in zone 2
@overlay FLASHLIGHT opacity 1 in 0
goto mainveiw
}
“BACK” {
@zoom reset
@overlay BACK clear
goto mainveiw
}
“PAPER” {
gain PAPER
@overlay PAPER shifts to 154 154 in 0 in zone 2
@overlay PAPER scales to 0.571 0.571 in 0 in zone 2
@overlay BACK clear
@zoom reset
@overlay PAPER to layer 2
@overlay PAPER scales to 0.188 0.188 in 0 in zone 2
@overlay PAPER shifts to 174 484 in 1 in zone 2
goto mainveiw
}


#2

Wha do you mean by looping? :thinking:


#3

I’ve recorded it but had to upload it by YouTube as I can’t change the video format.


#4

I think I’ve managed to fix it I needed to putthem both in as an if or else instead of in the actual scene :slight_smile:


#5

Oh, I know why it’s because:

When you pick a flashlight and you going back to the main view this part it’s playing again:


#6

Thanks :slight_smile: had to add an else (FLASHLIGHT) to the if so that when you haven’t got it it stays put but once you collect it it goes to where it should.