- Home /
Question by
Ross23 · Oct 30, 2017 at 12:07 PM ·
c#2dmovement2d animation
Game object should move like a fish in 2D C#
I am using unity 5.5 and 2D project with C# scripts. I am using a sprite having a fish image. I want to move this sprite like real fish all around the screen. Moving direction and face of fish should be in a same direction and movement should be random inside the screen. When fish change its direction, face of fish also turns in that direction. finally It should look like a fish in tank. Please let me know how to achieve this.
Comment
Answer by TanselAltinel · Oct 30, 2017 at 12:41 PM
Start here: https://unity3d.com/learn/tutorials/s/2d-game-creation
At the end of the first layer of the tutorials you are going to learn about:
Sprite Renderer
RigidBody2D
Basic scripting
and you will be able to do what you want.