1
\$\begingroup\$

I have started making a 3D game in Unity5 that consists in avoiding obstacles. It is very easy but I want to add a collision effect when I collide on the wall.

I would like to slice the screen into many parts (random pieces is better) that are falling down from screen with gravity.

An example of what I mean: enter image description here

How can I do this?
I've tried using a lot of different images (shapes) but I'm sure that is not the best way...

Thanks for any suggestions.

\$\endgroup\$
1

1 Answer 1

1
\$\begingroup\$

Instead of randomly slicing the sprite, you can create several different animations including premade sliced sprites, and randomly play one of them.

If you have around 5-6, the repeats would be unnoticable for the most of the players.


There is also this asset on the Asset Store which allows you to dynamically slice sprites on runtime.

\$\endgroup\$
1
  • \$\begingroup\$ it's a good workaround... \$\endgroup\$
    – elp
    Aug 1, 2016 at 10:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .