Hi all, I'm trying to figure out how to do the below:
Step 1: Player clicks and holds to place a slug.
Step 2 & 3: Player drags back and forth to determine the length of the slug, releases mouse click to make their selection.
Prototype is here: https://pyremonk.itch.io/mushroomhigh
I'm thinking of doing this with two sprite assets. One for the head of the slug and another with the body that is as long as the max length possible. Player would click, the head would get placed and the body would only show the tail end of the body asset and then sort of slide out from the head sprite. Is there a way to do spawn the body sprite and mask it under the head sprite even though it is long than the head?
Right now I have this implemented with a single square sprite, but if I were to make a single sprite for the slug, it will look weird when I shorten and lengthen the sprite. I'm trying to come up with a way to make this pretty.