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.
ucf564736b7b42b4c7fadc5c98bb.dl.dropboxusercontent.com/cd/0/get/CiAPebG1AemjWxLvm5LKwBBLY4Kcpw8pqSQZJt85v1nJARfGuNQ8cTUh7TaNifQi-qnjH_2Gd4rh0PuMdlqQKC__MYYr9oDZsX0rgJtNEOV5g1JkeJymqSVRnPk2iiBLgwdbgBboXAtzIdCvjutOkcmR/file
uccea731cb215f801e7e233457cc.dl.dropboxusercontent.com/cd/0/get/CiDcxQ5b66duynZsExL7D2DzejmzwPhXR_KLwDxJvIdzVeGu1cF1qIm7OXHYg8_ZMrC8J3BTXRtFsHkPKFDqk0hluJ6Uqip3AmaI6B4oy8HCMy3irr4CQDOyEuQHMgdWi6UaOtCNAVgmX8E8cJHzPKB1/file
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.