2
\$\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\$
2
\$\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\$
  • \$\begingroup\$ it's a good workaround... \$\endgroup\$ – elp Aug 1 '16 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.