Hi,
Fixed now...
We used suggested: "SetViewOffset()".
Thanks!
Jesse
//------------------------------------------------------------------------------------------------------------
function DisplayAboutScreen( )
if ScreenFadeStatus = FadingFromBlack and ScreenFadeTransparency = 255
SetDelayAllUserInput()
LoadSelectedBackground()
if (GameWon = false)
SetSpritePositionByOffset( TitleBG, ScreenWidth/2, ScreenHeight/2 )
else
LoadImage (50009, "\media\images\story\Story-10.png")
StoryImage = CreateSprite ( 50009 )
SetSpriteOffset( StoryImage, (GetSpriteWidth(StoryImage)/2) , (GetSpriteHeight(StoryImage)/2) )
SetSpriteDepth( StoryImage, 4 )
SetSpritePositionByOffset( StoryImage, ScreenWidth/2, ScreenHeight/2 )
endif
NextScreenToDisplay = TitleScreen
SetupAboutScreenTexts()
DestroyAllGUI()
AboutScreenOffsetY = 0
AboutScreenBackgroundY = 320
ScreenIsDirty = TRUE
endif
if AboutScreenOffsetY > (AboutTextsScreenY[NumberOfAboutScreenTexts-1]+10) or MouseButtonLeft = ON or LastKeyboardChar = 32 or LastKeyboardChar = 13 or LastKeyboardChar = 27
ScreenFadeStatus = FadingToBlack
if AboutTextsScreenY[NumberOfAboutScreenTexts-1] > -25 then PlaySoundEffect(1)
SetDelayAllUserInput()
endif
index as integer
if (ScreenFadeStatus = FadingIdle)
for index = 0 to (NumberOfAboutScreenTexts-1)
SetViewOffset( 0, AboutScreenOffsetY )
inc AboutScreenOffsetY, .02
inc AboutScreenBackgroundY, .02
if (GameWon = FALSE)
SetSpritePositionByOffset( TitleBG, ScreenWidth/2, AboutScreenBackgroundY )
elseif (GameWon = TRUE)
SetSpritePositionByOffset( StoryImage, ScreenWidth/2, AboutScreenBackgroundY )
endif
next index
endif
AnimateStaticBG()
if FadingToBlackCompleted = TRUE
SetViewOffset( 0, 0 )
DeleteImage(50009)
LoadInterfaceSprites()
PreRenderButtonsWithTexts()
if (GameWon = TRUE)
CheckPlayerForHighScore()
if (PlayerRankOnGameOver < 10)
if (OnMobile = TRUE)
NextScreenToDisplay = NewHighScoreNameInputAndroidScreen
else
NextScreenToDisplay = NewHighScoreNameInputScreen
endif
else
NextScreenToDisplay = HighScoresScreen
endif
elseif (GameWon = FALSE)
NextScreenToDisplay = TitleScreen
endif
GameWon = FALSE
endif
endfunction
//------------------------------------------------------------------------------------------------------------