I want to slice object's in half using another object as the hitbox
I did with 1 sprite and 2 tileBackgrounds.
When the laser cut the fruit, I will create 2 tilebackgrounds that have the height equal the cut points to the edge of fruit.
Develop games in your browser. Powerful, performant & highly capable.
Here are two other examples. On discord there were some other examples using other ways too.
dropbox.com/s/i7vrebn55xor8p5/mesh_slice.c3p
dropbox.com/s/cra289zoqzdfiui/tiledbg_slice.c3p
R0J0hound thank you the mesh slice was just what i needed
have a question how do i stop it from floating i am gonna add a physics so it can fall on the floor so when i cut down the enemies is my game
i.imgur.com/f2NYyF6.gif
Not sure. It’s an issue with the physics behavior. It jumps because it can take a frame to update the collision shape or something.
In the past doing things like making the objects immovable for a frame helped. You’ll just have to fiddle with it.