hello everyone, i hope you’re living a good life and doing great!
now, i’m right now in the period of testing things, and i want to try and make an animated spritesheet.
but the thing is, how can i make them?
i want to use hatred from the hit game Block Tales for an example (i obviously won’t be using it in a game)
(the animation)
(the spritesheet)
any help would be appreciated, thank you!
1 Like
i’ve tried using SpriteClip 2 but it’s not working for some reason
here’s the code if the owner of SpriteClip sees this
local SpriteClip = require(game:GetService("ReplicatedStorage").SpriteClip2)
local image = script.Parent
local Sprite = SpriteClip.ImageSprite.new({
adornee = image,
spriteSheetId = "rbxassetid://100310209519318",
spriteSize = Vector2.new(640, 640),
spriteCount = 14,
columnCount = 4,
frameRate = 24,
isLooped = true
})
Sprite:Play()
awry_y
(Charlotte)
January 2, 2025, 1:26pm
#3
Here is a basic GIF script I made around a week ago:
emojiData = {ImageID = "rbxassetid://XYZ",Column = 4,Row = 4,Frame = 14,Size = Vector2.new(1024,1024)
emoji.ImageRectSize = Vector2.new(emojiData.Size.X/emojiData.Column,emojiData.Size.Y/emojiData.Row)
while true do
local x,y = 0,0
for f = 1,emojiData.Frame do
emoji.ImageRectOffset = emoji.ImageRectSize*Vector2.new(x,y)
x += 1
if x > emojiData.Column-1 then
x = 0
y += 1
end
task.wait(1/12)
end
end
this works
and thank you i appreciate it
but is there a module that does this that is faster? idk why but i like modules
awry_y
(Charlotte)
January 2, 2025, 1:38pm
#5
Good, please mark my post as the solution.
Please use google for that. I do not know how these modules are because I do not use them but here:
This is by no means new and perhaps somebody has made a public method before, but I decided to make my own today. It was originally just for a friend to use, but I might as well make it public.
With that out of the way, let me introduce my new Gif Element:
[Gif Icon Small(UpResNet10)(noise_scale)(Level2)(x2.000000)]
Gif v1 (Old) [Gif Attributes(UpResNet10)(noise_scale)(Level2)(x2.000000)]
Here’s the description as I’ve put it:
A “new” UI element used to for “gifs” instead of plain…
Introduction
SpriteClip2 is a module that simplifies the process of creating and animating both very simple and complex sprites in Roblox.
This is a direct successor to my older SpriteClip module . It was fairly popular, but I was never happy with its lack of features and the amount of quirks. The API is very similar, but uses a different case for personal reasons. Paused sprites are now properly handled and no longer have to be destroyed to avoid looping through hundreds of sprites every frame…
This is an updated version of my Previous Thread , in which I described how to make a gif using textures and texture offsets, this is both a tutorial and a resource, much like the previous post, so I will be making the post here, like the previous post
Additional notes: This is an example resource showing you how to do this, not necessarily how you should do it. If you have a better way to load or animate Spritesheets, do it, this was not built for performance.
Hello, recently people have bee…
1 Like
spriteSize is the size of the individual sprites not the sprite sheet. It’s 640/4 in your case both for x and y.
system
(system)
Closed
January 16, 2025, 1:52pm
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.