0 votes

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

Godot version 3.X
in Engine by (12 points)

1 Answer

0 votes

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.

https://docs.godotengine.org/en/stable/tutorials/2d/2d_sprite_animation.html

by (144 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.