How do I create a proper video in roblox using ImageLabels

  1. What do you want to achieve? I want to make a proper video in roblox

  2. What is the issue? It was going right and down

robloxapp-20230325-1312340.wmv (380.3 KB)

  1. What solutions have you tried so far? I can’t find it in the DevForums
while true do
	if script.Parent.ImageRectOffset.X > 645 then
		script.Parent.ImageRectOffset += Vector2.new(0, 45) - Vector2.new(645)
	end
	
	if script.Parent.ImageRectOffset.Y > 677 then
		script.Parent.ImageRectOffset = Vector2.new(0, 0)
	end
	
	script.Parent.ImageRectOffset += Vector2.new(80)
	task.wait()
end

I want it to go frame by frame, not right to down, I want it frame to frame, Each frame is 80 x 45 pixels, there is 149 frames in that one, the image id is rbxassetid://12268635563, I want to make it frame by frame so It doesn’t go down and right

I haven’t dealt with making videos and stuff before, but I can give it an attempt:

while true do
    for YPos = 0, 16 do
        for XPos = 0, 8 do
            script.Parent.ImageRectOffset = Vector2.new(XPos * (722 / 9), YPos * (768 / 17))
            task.wait()
        end
    end
end

You may need to adjust the numbers 722 and 768 to get it to fit correctly. I got the numbers off the details of a downloaded version of the sprite sheet.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.