r/aigamerdevs • • 4h ago

Help with sprite generation

I keep trying to fix my sprites, particularly the walking animations and I just cannot, no matter what I try. Can someone more skilled than me assist me? The arms and legs just start looking strange. I work with claude and codex and get the same thing. At this point im ready to spend money to fix it but I would prefer not, consider my game is more or less just a for fun project

Edit: Thank you guys, this is considered by me to be Solved:
Successful workflow is use gemini to make a gif, then convert that gif into a sprite sheet.

1 Upvotes

34 comments sorted by

5

u/Bulky-Aspect7621 4h ago

6

u/Asassn 4h ago

I will do naughty things for you if you give me the sauce wtf

5

u/phantomimp 4h ago

Generate Video from your Sprite with the Animation that you want and a Greenscreen Background. Then put the Video frames into a Sprite Sheet and remove the Background.

3

u/Bulky-Aspect7621 4h ago

To add , say "make me a Gif" it saves on compute, otherwise you gonna blow through credits on high deff pixels lol.

Also to add, when generating , add (no VFX, no shadows).

2

u/phantomimp 4h ago

Yeah I use Gemini AI which gives separate Credits for Video Generation in Google flow

1

u/Bulky-Aspect7621 4h ago

I avoid video generation for my game because it's also a tax on Claude when he's doing key framing for animation in Godot. No idea what Google flow or Astra or whatever new model name is. What I know is Gif's cost less and already look like they belong in my 2d platformer.

1

u/Glorpson 4h ago

Still not looping properly

2

u/Bulky-Aspect7621 3h ago

Just from eyeballing it there is a full walk animation in there, the full video is 2x walks and .5 stutter animation. You cut the stutter out and bam working GIF. This is what I learned from using AI.

1

u/TheVoidCookingBeans 4h ago

Care to share how?

3

u/Bulky-Aspect7621 4h ago

Yeah its super easy. I take a picture and throw it in Gemini and go "Show me a Gif walk animation".
That's it.

Now keeping it from drifting on the other animations.....HEHEHEHEHEHEEHEHEHEHEHEEHEHEHEHEHEHEHEHEHEHEHEEHEH :*(

2

u/prettyfuckingfarfrom 4h ago

It looks unnatural because it’s just warping the 2D sprite to make it look like it’s moving. I think it would work better if you made a simple 3D animated model in Blender and then flatten it to be 2D

1

u/Asassn 4h ago

I got this little gem when I tried that hahahahahah

1

u/ChampionsWrath 4h ago

Unironically make this the main character and make billions

1

u/Asassn 4h ago

Agreed, i was thinking to put him as a easter egg somewhere

1

u/prettyfuckingfarfrom 3h ago

Hmmm it might be trying to make a 3D model of the 2D image instead of the character 😂 Make sure to tell it you want the whole character as a real, walking 3D model that walks left and right on screen and only looks “flat” because the perspective is from the side

1

u/prettyfuckingfarfrom 3h ago

If that doesn’t work, try feeding your character’s picture into Tripo and use your free credits. I haven’t used Tripo much but I know people use that to make 3D models from a 2D image

1

u/Square_Reason_6490 56m ago

To get a free model on Tripo you need to use specific settings I’m not sure what they are but it pissed me off because everytime I tried to download a model I was being told I had to pay

1

u/Koden02 4h ago

I think part of your issue might come from the complexity of the outfit and the number of points of articulation that need to be animated. Looking at the animation on the right, I'm noticing some gaps around the shoulders and where the clothing overlaps the legs. You might need some additional artwork underneath those overlapping parts if you're going with a rigged approach.

I've also seen people suggest trying to generate a GIF/video of the character walking and then extracting the frames to turn them into sprites. You'd probably still need to do some manual cleanup, but it might be another avenue worth exploring.

I haven't tried it myself, and I don't remember which video I saw demonstrating it, but maybe that's a good starting point?

2

u/Asassn 4h ago

That is really interesting, ill give that a shot. I know codex can generate gif’s now. I just worry about getting something far off from my original design, but perhaps

1

u/HLCYSWAP 4h ago

youre frankensteining it by chopping a singular sprite rather than regenerating the sprite as pieces and rigging it

needs work, but heres the concept

1

u/TheHabeo 4h ago

What you should do is not wrap your 1 sprite and make it move, but make a rigging structure with mutiple body parts at different angles, then assemble them into frames and draw them one after the other into an animation. The more frames, the more smooth your animation look, but generally for pixel style or similar 6 frames is good enough to feel decent.

The AI can assist you in doing both, making the sprite rigs and animate it.

1

u/Expensive-Editor8851 3h ago

if you rly wanna rig it properly, you need the character in a T pose, otherwise that slop happend what you seen, it doesnt work that way

1

u/Braunb8888 3h ago

Hey man join the struggle. I figured it out for free, so will you. Be really mean to Claude. Don’t let them get away with bullshit. It’s tough to figure out but you got this. If it was easy all these fuckin idiots saying “lol ai game is saying make game, make no mistake!” Would actually be able to make a game.

1

u/CombOk9323 3h ago

Use Pixellab bro, cost 10 usd/m

1

u/-TheCosmicArchitect 2h ago

Yes that's what I've been using, it's great

1

u/_DCtheTall_ 3h ago

Copying my comment from another thread. This workflow worked decently well for me for 2D game assets:
- Have Neon create a technical spec JSON of the assets needed
- Tell it to spawn a Nano Banana sub-agent to generate high resolution graphics for each animation frame based on the spec all in one sheet
- When it is done have Neon downscale the high res graphics to fit your spec exactly

1

u/-TheCosmicArchitect 2h ago

Use pixellab, character generations and animations are free. And it actual pixel art

1

u/oSi7ENT 28m ago

Want a super secret tip? Build off of a spine and movable joint system.

-1

u/-goldenboi69- 4h ago

Yeah fuck spending money. I guess you will give away your slop game for free?

2

u/Asassn 4h ago

I think you didn’t read correctly. It’s a for fun project, no intention of really releasing anything.

1

u/Warsel77 1h ago

Don't you think it's a bit of a double standard to use AI coding yourself and then bash other people for using other forms of generative AI?