Context:
I'm current updating my "finished" game with more reworked sprites so it looks nicer. One of my sprites involves scooping up water with a bucket.
In this screenshot here, I have the 48 x 48 tiles references in those background squares.
What I want to happen is that when the player chooses to scoop up water in the bucket, the "bottom" portion of the sprite sheet shows the empty bucket.
Later, he can "dump" the water in the "top" portion of this same sprite sheet.
The same logic is applied here too for all the other sides as well.
The thing is though, when I try to swap out the tiles sheets in-game just for the animation (after expanding my original tile(s) from 144 x 192 to 288 x 384), the positioning is always off, and I can't seem to keep the sprite in the same spot no matter which "direction" the sprite is facing.
See how he is using the animation a little far from the water? He was standing right in front of it before I switch the sprite sheets in the code.
So how do I get the positioning juuuust right to where the bucket and water splashes in the sprite can overlap into the "next" tile?
I'm current updating my "finished" game with more reworked sprites so it looks nicer. One of my sprites involves scooping up water with a bucket.
In this screenshot here, I have the 48 x 48 tiles references in those background squares.
What I want to happen is that when the player chooses to scoop up water in the bucket, the "bottom" portion of the sprite sheet shows the empty bucket.
Later, he can "dump" the water in the "top" portion of this same sprite sheet.
The same logic is applied here too for all the other sides as well.
The thing is though, when I try to swap out the tiles sheets in-game just for the animation (after expanding my original tile(s) from 144 x 192 to 288 x 384), the positioning is always off, and I can't seem to keep the sprite in the same spot no matter which "direction" the sprite is facing.
See how he is using the animation a little far from the water? He was standing right in front of it before I switch the sprite sheets in the code.
So how do I get the positioning juuuust right to where the bucket and water splashes in the sprite can overlap into the "next" tile?