Jump to content

Recommended Posts

Hi, new modder here! I'm currently working on my second character mod, and he's pretty close to being done, but I'm having an issue with the item. I'm trying to make a custom fishing rod and plan to replace the art with my own.

 

My first problem is that it's too small when equipped. For context, I'm using a custom item template. The ground sprite is the correct size since I scaled it up in the code, but it seems it doesn't apply to the swap sprite (I tried putting the same SetScale in the OnEquip function, but that didn't work). I'm also a little too scared to use a different sized canvas for the sprite since I'm worried that would mess something up...

 

Second, nothing happens whenever I hover over the item on the ground. Nothing else is wrong with it, and I can pick it up while holding Space, it's just that clicking on it does nothing and no name pops up. Not that big of an issue, just a minor annoyance

 

Also felt worth adding: I had the same issue with my first mod since he also has a custom item, only a little different. When it was placed on the ground, you could just step on top of it, your character wouldn't go behind it (The item sprite had a different canvas size, so that's probably why). However, I noticed whenever it was placed in the ocean the sprite was placed differently as it floated, and I could click on the ripple where it was supposed to be. That made me think that maybe the hitbox was just placed weirdly, but placing it back on land and trying to click everywhere on the screen did nothing

 

Here's the prefab for the item:

tsurizao.lua

タテガミたすけて.png

タテガミたすけて2.png

Link to comment
https://forums.kleientertainment.com/forums/topic/168104-item-sprite-trouble/
Share on other sites

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