Jump to content

Recommended Posts

8 hours ago, SrCheddar said:

I did all that but the helmet texture doesn't appear in the game.

 

Did you use the template I sent above? If you use that template, you only need to replace the image, and it will work.

If you have renamed anything, pay attention to these things, including the directories in \swap_hat and the OnEquip function

nh.png.1e31a88cc102d89c7e5558dbc030ffd0.png

nh.png.353e88544fc13b6f7c5226e158139f12.png

  • Like 1
9 hours ago, SrCheddar said:

ok, here it is, the mod adds 2 hats, the one that doesn't work with his texture is one called "flash sleek hat"

flash sleek hat mod.rar 916.81 kB · 3 downloads

I fixed it, missing swap_hat folder in exported, inconsistent names in scripts
flash_sleek_hat, flashsleek, hat_flashsleek

flash sleek hat mod.zip

  • Like 1
1 hour ago, SrCheddar said:

Bây giờ các kết cấu đã hoạt động nhưng chúng được định vị không chính xác và kết cấu khi ở trên mặt đất thì quá lớn.

20250331192604_1.jpg

20250331191605_1.jpg

20250331191612_1.jpg

20250331191730_1.jpg

Try reducing the size of the image in Spriter and adjusting its position accordingly. The method is shown in the video I sent at the 30-second mark.

  • Like 1
11 hours ago, SrCheddar said:

I followed the indications in the video and the error continue in the same way.

inst.AnimState:SetScale(0.7, 0.7)
To make the hat smaller when placed on the ground, you can use spriter as in the video to move its position as you want, it may take quite a while

  • Like 1
8 hours ago, SrCheddar said:

Now I can move its position but the problem is that when I put "inst.AnimState:SetScale(0.7, 0.7)" the two hats shrink, and I only want the "flash sleek hat" to shrink not the other

20250402164343_1.jpg

    if name and name == "flashsleek" then
        inst.AnimState:SetScale(0.7, 0.7)
    end

 

  • Like 1

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