How To Make Slicing Action Like Fruit Ninja?

Discussion in 'How Can I...?' started by Fernandooo69, Apr 18, 2018.

  1. Fernandooo69

    Fernandooo69 Boxer

    Joined:
    Aug 22, 2017
    Messages:
    45
    Likes Received:
    4
    I was just wondering how could I slice a object in my game like you slice fruits in fruit ninja?
    I want to be able to cut a object multiple times (as if the red lines are the places where its sliced).
    . cut.png
     
  2. Coldwilson

    Coldwilson Avid Boxer

    Joined:
    Dec 18, 2017
    Messages:
    109
    Likes Received:
    45
    Not sure if this is any help but on one of my levels I had a series of physics objects hanging on connectors. As the screen moved downwards (for this game) the objects all fell to the bottom. The invisible object that held these with connectors had gone past the delete threshold so the connections were broken and the objects were affected by the physics.

    So perhaps you could have an invisible object holding these together (overlayed maybe) that gets destroyed which would cause these to then come apart. How that works depends on your setup of physics, etc. If you wanted them to fly in different directions then it might work to have them with x,y velocity settings. I'm guessing they won't obey those settings until the connectors are destroyed.

    Be good to hear about your results.
     

Share This Page