Is slicing possible?

GeniusBear

  • Posts: 55
Hello everyone,

Just got a quick question, is slicing possible? Because its able in box2d.

Gr.Maarten
Geniusbear
Do you need art for your game? Here are some demo's from my upcoming game:
http://www.geniusbear.com/demo/lumberjackdemo.png
http://www.geniusbear.com/demo/clouddemo.png

PrunePlum Games

  • Posts: 174
By slicing, do you mean cutting an actor in half with a gesture with a finger, like fruit ninja or cut the rope?

If so, I think this is possible. Try:
Always
Create actor "Blade segment" at x of touch, y of touch.


And a behavior for the Blade segment actor:
When created
Do After .2 seconds
Kill Self


Finally, a behavior for the actor to be sliced:
When this collides with something else
Switch animation to sliced
[do other things you want the actor to do when sliced]
.

GeniusBear

  • Posts: 55
Hello PrunePlum,

Thanks for the tips I will take a look at it tommorow.

Gr.Maarten
Geniusbear.com
Do you need art for your game? Here are some demo's from my upcoming game:
http://www.geniusbear.com/demo/lumberjackdemo.png
http://www.geniusbear.com/demo/clouddemo.png

Miasmos Games

  • Posts: 878
@PrunePlum games, that will only change the actor's animation to a "sliced" version, which isn't very versatile. I think what he means would be what Fruit Ninja actually features, which is dynamic slicing which creates two separate entities.

Cupcake Bounce

Hectate

  • *
  • Posts: 4643
There's probably something being done with the Box2D collision shapes where two new shapes are made using the existing shape and the intersection of the line. I'd suggest checking around online (maybe on Box2D forums?) to see what other people have suggested doing - I've no doubt that other people have asked the same question there and the style of game is popular.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.


GeniusBear

  • Posts: 55
Hello captain,

Thanks for your help, I will take a look at it tommorow.

Gr.Maarten
geniusbear.com
Do you need art for your game? Here are some demo's from my upcoming game:
http://www.geniusbear.com/demo/lumberjackdemo.png
http://www.geniusbear.com/demo/clouddemo.png