- Home /
info about sprites in 2d
i have various of sprites that i have them imported as textures, how do i make them work such as moving and or firing? I have a question about collison how do i make my enemy or play know that they are hit?
Are you new to unity? The question is a little vague as it is not described what type of game you are making. Can you please describe a little more about what you are trying to achieve?
mkjrfan, yes i am, i want to have both my player and enemy change animations based on sprite sheets based on collisions(gettting hit and dies, moving, firing and taunting) i have made in photoshop using a previous version of unity.I was hoping to use that for my space invaders game if it's possible.
Answer by komodor · Dec 05, 2013 at 01:11 AM
sprite is gameobject, so just attach you components to them and they will behave almost same way as plane for example
to handle collisions you need to attach also http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody2D.html with http://docs.unity3d.com/Documentation/ScriptReference/Collider2D.html and listen to the collision events
Your answer
![](https://koobas.hobune.stream/wayback/20220613123439im_/https://answers.unity.com/themes/thub/images/avi.jpg)