*RESOLVED*
Hello all! I've hit a rather peculiar snag in which a text is hiding itself when I move to a new case within a select statement. I've pasted the relevant code below. Case 1 does exactly what I want it to do, however, when the "This is the tale of the firestarter" text vanishes and the case is changed to 2 by using
the text totally vanishes?! Its probably just something small that I'm overlooking, but all help is appreciated!
The code that doesn't work...
Case 1:
SetTextString ( Version_Text , "" )
SetTextString ( Menu_Quote , "" )
SetSpriteVisible ( Menu_Black , 0 )
SetMusicSystemVolume ( Settings_Music_Volume )
PlayMusic ( Music_Private_Reflection )
Intro_Text = CreateText ( "This is the tale of the firestarter" )
SetTextSize ( Intro_Text , 64 )
SetTextPosition ( Intro_Text , GetDeviceWidth ( ) / 2 - GetTextTotalWidth ( Intro_Text ) / 2 , GetDeviceHeight ( ) / 2 - GetTextTotalHeight ( Intro_Text ) / 2 )
SetTextColorAlpha ( Intro_Text , 0 )
//Fade in
For i = 1 to 255
SetTextColorAlpha ( Intro_Text , i )
sync
Next i
//Fade out
For i = 1 to 255
SetTextColorAlpha ( Intro_Text , 255 - i )
sync
Next i
Cutscene_Flag = 2
EndCase
Case 2:
SetTextVisible ( Intro_Text , 1 )
SetTextString ( Intro_Text , "The story of a young boy" )
SetTextPosition ( Intro_Text , GetDeviceWidth ( ) / 2 - GetTextTotalWidth ( Intro_Text ) / 2 , GetDeviceHeight ( ) / 2 - GetTextTotalHeight ( Intro_Text ) / 2 )
//Fade in
For i = 1 to 255
SetTextColorAlpha ( Intro_Text , i )
sync
Next i
//Fade out
For i = 1 to 255
SetTextColorAlpha ( Intro_Text , 255 - i )
sync
Next i
Cutscene_Flag = 3
Endcase