I am very new to Unity (to not C# and programming as nicely) however I managed to attain some targets very quick. However some ideas I nonetheless do not get of their full features.
I am creating a small multiplayer recreation referred to as skeet. It is about clay pigeon taking pictures. I’ve a static 2D scene, with 3 belongings: A gun, a bullet and a pigeon. These sprites I can deploy on the scene by an occasion pushed script and I can react on collisions between objects.
I reached the purpose I’ve to animate the pigeon and the bullets. First I’ve to animate the pigeon transferring from border to frame in a random course on a random top. Second if a participant presses its key to shoot its bullet have to be animated from the underside of the display straight upwards.
My present thought is to create some animations as belongings and to assign them to the sprites I am creating dynamically. However I do not know what I would like within the Unity GUI and within the script.
I am not searching for a able to run answer however an ordered checklist of ideas and advices I’ve to have a look into.
Edit:
The bullets and pigeons are created dynamically and needs to be destroyed after the animation completed (by reaching any border of the display or a collision). So I must create an animation with assignable place parameters.