Import Sprites From Sprite sheet

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AlMustapha

Hi
i have some spritesheets from my project (project made in unreal game engine )
now i decide to port project to godot
the problem is
My Sprite sheet

now i made many sprite sheets and already has json file but for unreal asset
one of frames is
“bg_4zounianbiaoshi”: {
“frame”: {
“x”: “774”,
“y”: “314”,
“w”: “346”,
“h”: “378”
},
“rotated”: “false”,
“trimmed”: true,
“spriteSourceSize”: {
“x”: “0”,
“y”: “0”,
“w”: “346”,
“h”: “378”
},
“sourceSize”: {
“w”: “346”,
“h”: “378”
},
“pivot”: {
“x”: 0.5,
“y”: 0.5
}

now i try to port json files to be accepted as godot import file but the file contains less data
{
“filename”: “icon - Copy (2).png”,
“region”: {
“x”: 0,
“y”: 0,
“w”: 64,
“h”: 64
},
“margin”: {
“x”: 0,
“y”: 0,
“w”: 0,
“h”: 0
}
},

now where the attribute rotate ? and trim

:bust_in_silhouette: Reply From: Noddy

While the sprite sheet isn’t currently visible on the post, from what I understand, as long as the sprite sheet is a png or some other standard image format you can just pull it into the engine and when you want to animate it you use keyframes in an AnimationPlayer node or AnimatedSprite which can handle sprite sheets.