Hello! Me and my friends are remaking the RPG game, OMORI. You may know that on the Title screen, the main character, Omori is “animated”, which is just 3 frames of changing the transparency over, and over again. Here is what I need to try to achieve:
Because there is only 3 frames, you can use use a repeat loop and loop through the 3 images, and for a smooth run, preloading them before they are posted.
local ContentService = game:GetService("ContentProvider")
local ImageLabel = script.Parent --Or where the image label is located
local Assets = {} -- Put Images links in here, In order
ContentService:PreloadAsync(Assets)
print("Loaded Assets")
local ListNumber = 0
repeat
ListNumber += 1
if not Assets[ListNumber] then
ListNumber = 1
else
ImageLabel.Image = Assets[ListNumber]
end
wait(3) --You can replace this with how quick you want the frames to go
until false
If you want the easiest place where you don’t have to change it, you can put it as a child to the image label, inside of that Gui. Just be aware that if it’s not there you will need to change
local ImageLabel = script.Parent --Or where the image label is located
to the location of the image label, and making sure it’s in a local script