How do I slice a sprite like in fruit ninja?

Get help using Construct 2

Post » Fri Apr 04, 2014 12:41 pm

I would like to accurately break apart a sprite depending on a slice motion. Is this possible?
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Fri Apr 04, 2014 6:30 pm

@bscarl88

well, slicing the object at the exact spot will be difficult i think,

but one way would be, to have an animation of a fruit being split in two, now, to make it a bit more realistic, you could get the angle of the split, thru the touch motion, and set the animation of the split at that angle, so it looks like its getting split in that direction, also adding some particles maybe depending on the angle..
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sat Apr 05, 2014 3:33 am

@vtrix is that how fruit ninja does it? I could have sword they do it by the actual slice on the fruit, but i guess morphing an image would require a lot more code and probably be very complex and CPU heavy.
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Sat Apr 05, 2014 3:45 am

well the slicing goes very fast, but i guess, there's only one place the mesh gets splitted, but because of the 3d and the physics you get much variation, and it basicly generates two objects that gets bounced apart

maybe its possible to come close to it, by generating different pieces and different motion (rotations) when slicing, and just call it a different style :)
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sat Apr 05, 2014 12:40 pm

thanks! :)
B
35
S
5
Posts: 411
Reputation: 3,406


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Google [Bot], JackTYGA, Kin, worm1 and 30 guests