S
StanCoda
Guest
Hello! I'm making a game in which the player slices rectangles by dashing over them in one quick motion. Right now they're blank rectangles, more complicated sprites will be added later. Here's a quick example of the player slicing through one horizontally:
(Player clicks to the right of the rectangle, dashing through it, cutting it, and sending the two halves spiraling away)
My current solution is replacing the rectangle object with two "half rectangles", but here's the problem:
It looks great when the player cuts it at a perfect horizontal angle, but what if they bisect it at a slight angle? Or only cut off a corner? My question is THIS:
Can I somehow slice up a sprite in-game? It would be impossible to create sprites for every possible angle and location of possible cuts. I want a system that makes it possible to have cuts like this:
Does anyone know of a way to slice up a sprite in-game? I appreciate your feedback!
(Player clicks to the right of the rectangle, dashing through it, cutting it, and sending the two halves spiraling away)
My current solution is replacing the rectangle object with two "half rectangles", but here's the problem:
It looks great when the player cuts it at a perfect horizontal angle, but what if they bisect it at a slight angle? Or only cut off a corner? My question is THIS:
Can I somehow slice up a sprite in-game? It would be impossible to create sprites for every possible angle and location of possible cuts. I want a system that makes it possible to have cuts like this:
Does anyone know of a way to slice up a sprite in-game? I appreciate your feedback!