Jump to content

Recommended Posts

I am planning on making another mod for Don't Starve. But, I want to know if I'll be able to change the art for some things in the base game (Maxwell to Mike Tyson. Pig King to King Hippo) I don't NEED this for my mod, but it'll be cool to have it.

"Dancin' like a fly, bite like a mosquito!"

That's what AddPrefabPostInit() is for ;)

 

Create an AddPrefabPostInit function as you normally would.  Inside that function, use inst.AnimState:SetBuild() to swap out the sprites for your own.  If you want to do more than just swapping the sprites out for different sprites(if, for example, your sprites don't match the same positions), you'll need to recreate every animation that the Maxwell and Pig King have access to, and also set the prefabs' banks to your new versions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...