[Unity 2D] How to code a bomb-throwing enemy?
Disclaimer
I just started studying C# and Unity recently. As someone who has visual design background, I've grown tired of other 'easier' solutions (Such as Construct, for instance),so I am determined to learn this right.
The problem:
I am creating a 2d game much like Mega Man, and I am struggling with the process of coding an enemy that throws bombs at the player. The throwing distance should vary according to the player's x position.
I really don't know if this is necessary or not, but I also thought that the bomb trajectory should be an arc.
The issue.
I found some threads around here with similar questions, but I had no luck at all to comprehend them enough to create my own thing. Is it possible for anyone to help me with this? I would be really grateful if someone could teach me how to break down and translate this into code.
Thanks in advance!