DEV Community

Cover image for I am using ChatGPT to animate my characters, in less than 5 minutes. Here is how you can do it too:
Anul Agarwal
Anul Agarwal

Posted on

I am using ChatGPT to animate my characters, in less than 5 minutes. Here is how you can do it too:

Image description

I have been experimenting a lot with ChatGPT and DALL-E 3. You can create:

🌟 Game Characters/Assets
🌟 Game Logo
🌟 Game posters/marketing materials
And now, Sprite-sheets, so you can add more life to your game.

Here is an example:

Image description

Here is how to do this:

🌟 Start a new chat with ChatGPT & Select GPT-4 & DALL-E Plugin

Image description

🌟 Prompt:

Image description

🌟 Revisions

Image description

You will not get the perfect result on the first go. You need to provide feedback and train the chat.

Image description

State the problem & ask it to β€˜fix it’.

Image description

Image description

Now this is great! But we want 16 frames.

Image description

Finally, we have our desired Sprite sheet!
You will not have the perfect sheet here. This is good for experimentation and visualizing different characters.

The next step is to β€˜slice’ this sheet and generate a GIF. There are 2 ways you can do this:

ChatGPT β€” Data analysis

Image description

Simple and straightforward but not very flexible to customize. It slices the image by dividing the image into 5x3 frames.

HuggingFace Spritesheet editor

Image description

I prefer this as you can customize the boundaries and specify how many frames in each row exist.

Our final result!

Image description

And another one!

Image description

You can generate as many characters or item animations are you like.

Btw, I generated a famous trending game entirely using ChatGPT! Check it out here!

Subscribe to my YouTube, where I shared how I earned $10k from an AI-generated game!

Summary

With ChatGPT & the new DALL-E 3, the possibilities are endless. The end result may not be perfect, but it is far better than what it was a year ago.

With upcoming improvements, we will be able to nail pixel-perfect results that we can use in the game!

Stay tuned as I experiment more with gen-AI tools for game dev!

You can connect with me on LinkedIn where I talk about gen-AI tools, earning $$ from games and game industry trends.

Top comments (4)

Collapse
 
jasper-at-windswept profile image
Jasper

Looks like the GIF's you uploaded only came out as PNG's. A shame we couldn't see the final result!

Collapse
 
anulagarwal12 profile image
Anul Agarwal

Ah no! MY bad :( I am still new to this platform!

Here is my Medium friend link where you can see the GIFs:

medium.com/@anulagarwal12/i-am-usi...

Collapse
 
jasper-at-windswept profile image
Jasper

They look really good, thanks for the cool post!

Thread Thread
 
anulagarwal12 profile image
Anul Agarwal

Thank you for reading it!!