Home Game Development unity – Creating animation by script with animation belongings

unity – Creating animation by script with animation belongings

0
unity – Creating animation by script with animation belongings

[ad_1]

I’m very new to Unity (to not C# and programming as properly) however I managed to realize some objectives very quick. But some ideas I nonetheless do not get of their full points.

I’m growing a small multiplayer sport known as skeet. It’s about clay pigeon capturing. I’ve a static 2D scene, with 3 belongings: A gun, a bullet and a pigeon. These sprites I’m in a position to deploy on the scene by an occasion pushed script and I’m in a position to 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 shifting 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 screen straight upwards.

My present thought is to create some animations as belongings and to assign them to the sprites I’m creating dynamically. But I do not know what I would like within the Unity GUI and within the script.

I’m not in search of 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 must be destroyed after the animation completed (by reaching any border of the display screen or a collision). So I must create an animation with assignable place parameters.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here