For some reason my loading “gif” flickers on and off once. It only happens once. It continues to play without any more flickering. It’s not a preloading issue because both of the images had been preloaded and the queue size is 0. It also flickers in different spots.
Video: imgrush.com
Last frame before flicker: http://i.imgur.com/81lYVqw.png
“gif” set to visible three seconds after queue size is 0: imgrush.com
Last frame before flicker: http://i.imgur.com/fuv33Uc.png
Code:
--preload images
wait()
while game.ContentProvider.RequestQueueSize > 0 do wait() end
--wait(3) on second one. Not here on first video
loadscreen.LoadGif.Visible = true
--Finish
I doubt it has anything to do with the code that plays the “gif”, but:
while wait() do
for stage=0,numStages-1 do
local sheet = math.floor(stage/stagesPerSheet)
script.Parent.Image = sheets[sheet+1]
local column = math.floor((stage%stagesPerSheet)/stagesPerColumn)
local row = stage%stagesPerColumn
script.Parent.ImageRectOffset = Vector2.new(column*columnWidth,row*rowHeight)
wait()
end
end
I have no clue why it’s doing this. For anyone who’s worked with similar things before, do you have any idea what’s going on?