I am trying to show a text or a picture when the timer is below a certan amount, but it doesn't work.
I ve posted the code below. Now the self switch C when the timer is zero works fine and text is displayed and a gameover is triggerred correctly, but the self switch D which should work if the timer is under 2 minutes, does nothing.
I have also tried to replace self switch D with just a "show text" but nothing.
I am lost here. Any ideas?
I ve posted the code below. Now the self switch C when the timer is zero works fine and text is displayed and a gameover is triggerred correctly, but the self switch D which should work if the timer is under 2 minutes, does nothing.
I have also tried to replace self switch D with just a "show text" but nothing.
I am lost here. Any ideas?
◆Control Timer:Start, 2 min 10 sec
◆Control Variables:#0002 MATTONELLE = 0
◆Control Switches:#0002 enemySWITCH = OFF
◆Loop // start of loop
◆If:EXITGATE is ON // this happen if the stage is completed and should not matter
◆Set Movement Route:Player (Repeat)
: :◇Move Up
◆Control Switches:#0003 CLEAR = ON
◆Flash Screen:(255,255,255,255), 110 frames (Wait)
◆Control Timer:Stop
◆Play SE:Applause1 (90, 100, 0)
◆Control Variables:#0009 score = plives
◆Control Variables:#0009 score *= 100
◆Control Variables:#0021 finalscore += score
◆Text:LibrariumNPCI(2), Window, Middle
: : STAGE CLEAR!
: : LIVES LEFT \v[01] X 100
: : SCORE \v[09]
: :
◆Text:LibrariumNPCI(2), Window, Middle
: : You got "Delicious Cheesecake"
: : You got \v[09] Vials
: : Lives Restocked
◆Change Gold:+ {score}
◆Change Items:Delicious Cheesecake + 1
◆Set Movement Route:Player
: :◇Wait:90 frames
◆Transfer Player:World Map (11,3) (Direction: Right)
◆
:End
◆If:Timer ≤ 2 min 0 sec // this doesn't
◆Control Self Switch:D = ON
◆
:End
◆If:Timer ≤ 0 min 0 sec // this works fine
◆Control Self Switch:C = ON
◆
:End
◆If:eneMYhittrigger is ON
◆If:invincible is OFF
◆Control Switches:#0030 invincible = ON
◆Control Variables:#0001 plives -= 1
◆Wait:60 frames
◆Control Switches:#0001 eneMYhittrigger = OFF
◆Control Switches:#0030 invincible = OFF
◆
:End
◆If:plives < 0
◆Control Self Switch:B = ON
◆
:End
◆
:End
◆Wait:1 frame
◆
:Repeat Above
◆Control Variables:#0002 MATTONELLE = 0
◆Control Switches:#0002 enemySWITCH = OFF
◆Loop // start of loop
◆If:EXITGATE is ON // this happen if the stage is completed and should not matter
◆Set Movement Route:Player (Repeat)
: :◇Move Up
◆Control Switches:#0003 CLEAR = ON
◆Flash Screen:(255,255,255,255), 110 frames (Wait)
◆Control Timer:Stop
◆Play SE:Applause1 (90, 100, 0)
◆Control Variables:#0009 score = plives
◆Control Variables:#0009 score *= 100
◆Control Variables:#0021 finalscore += score
◆Text:LibrariumNPCI(2), Window, Middle
: : STAGE CLEAR!
: : LIVES LEFT \v[01] X 100
: : SCORE \v[09]
: :
◆Text:LibrariumNPCI(2), Window, Middle
: : You got "Delicious Cheesecake"
: : You got \v[09] Vials
: : Lives Restocked
◆Change Gold:+ {score}
◆Change Items:Delicious Cheesecake + 1
◆Set Movement Route:Player
: :◇Wait:90 frames
◆Transfer Player:World Map (11,3) (Direction: Right)
◆
:End
◆If:Timer ≤ 2 min 0 sec // this doesn't
◆Control Self Switch:D = ON
◆
:End
◆If:Timer ≤ 0 min 0 sec // this works fine
◆Control Self Switch:C = ON
◆
:End
◆If:eneMYhittrigger is ON
◆If:invincible is OFF
◆Control Switches:#0030 invincible = ON
◆Control Variables:#0001 plives -= 1
◆Wait:60 frames
◆Control Switches:#0001 eneMYhittrigger = OFF
◆Control Switches:#0030 invincible = OFF
◆
:End
◆If:plives < 0
◆Control Self Switch:B = ON
◆
:End
◆
:End
◆Wait:1 frame
◆
:Repeat Above