Jump to content

Recommended Posts

So, I'm currently making a mod for Dst, and I'm using the boomerang code for a new item. Whenever I throw the boomerang and lay it on the ground, it shows the texture I want, but when I hold it it's just a regular boomerang. I'm currently in a call with a friend and he told me to wine on here for answers so uh yeah lol.

10 hours ago, -t- said:

Have you created a swap animation?

For equippable items it's necessery to create 2 separate animation files, one for when it's on the ground, item.scml, and one for when it's held, swap_item.scml.

How do I create a swap animation for the item? I tried exporting the swap_boomerang animation folder, but it didn't have an anim.bin. 

To create a swap animation you need to create a folder called 'swap_[your_item]' in your 'exported' folder. Inside you need to create another folder and name it 'swap_[your_item]'. In that folder you should put your boomerangs holding sprite.

Then create a new Spriter project and select the first 'swap_[your_item]' folder as your root.

In Spriter change the entity name to 'swap_[your_item]' and the animation to 'BUILD'.

Screenshot_1.png.7e92630e7696357d3b1ceb69e6f27133.png

Add your sprite and change its pivot to where you want your character to hold it.

Screenshot_2.png.b2e564a057633219697f8c582ba480fe.png

Save your project as scml, import the assets and launch the game. It should autocompile the build automatically for you.

  • Like 1
On 11/23/2021 at 1:01 PM, -t- said:

To create a swap animation you need to create a folder called 'swap_[your_item]' in your 'exported' folder. Inside you need to create another folder and name it 'swap_[your_item]'. In that folder you should put your boomerangs holding sprite.

Then create a new Spriter project and select the first 'swap_[your_item]' folder as your root.

In Spriter change the entity name to 'swap_[your_item]' and the animation to 'BUILD'.

Screenshot_1.png.7e92630e7696357d3b1ceb69e6f27133.png

Add your sprite and change its pivot to where you want your character to hold it.

Screenshot_2.png.b2e564a057633219697f8c582ba480fe.png

Save your project as scml, import the assets and launch the game. It should autocompile the build automatically for you.

Thanks! This helped 100%

Couldn't have done it without you!

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...