Sprite questions

Hi! I’m currently trying to make a “game” where you shave sheep (might sound strange but trust the process lol) but I can’t figure out/know if I can make it so each pixel in the wool sprite can be erased or deleted individually so it looks like the wool is getting shaven off. Thank you! ( ˶ˆ ᗜ ˆ˵ ):heart:

link: https://arcade.makecode.com/S10303-95164-48950-55520

2 Likes

I may not excactly know this, but my bandaid fix is to technically “split” the wool, so everytime the shaver is on a certain strip, the strip dissapears.

ok so this is a dumb idea : but if you want only one solid color under the wool, then you can use the “set pixel x,y, image color to ()” but, if you need multiple colors (for whatever reason) then you could prob do the same thing, but add in some image referencing (sheared as a base, to transform into from the non sheared)

4 Likes

Do what @BloonsFan3 is suggesting. I’ll make a small mockup for you. Because you have the wool as a separate sprite, drawing the “transparent” color on the wool where the shears are will be trivial and will work nicely.
Here’s the example I made, though it could be better:

2 Likes

@june is this what you want? the function inside does the pixel changing.

arrows to move the purple dot, a to change color at dot’s position, b to change sprite’s image pixel by pixel. it is easily editable inside.

2 Likes

Thank you! I didn’t fully understand what @BloonsFan3 was suggesting so I appreciate you giving me an example :slight_smile:

1 Like