Can anyone with a new iOS device test out their code? I downloaded a demo of my app onto a iPad 3 and it crashed when this code was ran.
function updateCongratsGUI(pPointerX as integer, pPointerY as integer)
tIndex as float
tIndex = congratsBGIndex
congratsBGIndex = congratsBGIndex + (GetModifiedFrameTime() * 15)
if congratsBGIndex >= 301
congratsBGIndex = congratsBGIndex - 301
endif
if floor(tIndex) <> floor(congratsBGIndex)
deleteimage(40)
if congratsBGIndex >= 0 and congratsBGIndex < 10
loadimage(40, "gui/congrats/00" + str(floor(congratsBGIndex)) + ".jpg")
elseif congratsBGIndex >= 10 and congratsBGIndex < 100
loadimage(40, "gui/congrats/0" + str(floor(congratsBGIndex)) + ".jpg")
else
loadimage(40, "gui/congrats/" + str(floor(congratsBGIndex)) + ".jpg")
endif
endif
SetSpriteImage(206, 40)
if GetPointerReleased() = 1
saveHighScores()
SetCongratsGUIVisible(0, 0)
rem do normal
menuState = 4
HideGameplayGUI()
playMediaMenu()
setLevelSelectScrollVisible(1)
endif
endfunction
Obviously this code won't work if pasted into a new project, but it might be reproducible on other systems. Or by downloading the Lite version of my Water app.
Hi there. My name is Dug. I have just met you, and I love you.