|
hello my friends here is my question i have enemy that i want shoot my player and i want when it shoots , the projectile go linear to my player i mean when i move my player to avoid the projectile , the projectile dont follow just go to its path linear and surely it is a 2d game i dont know how can understand you my problem please write the code in c#
(comments are locked)
|
|
From the description, I am imagining a 'space invader' type of game, where the enemy shoots in a straight line, and the player moves to avoid this. Here is a tutorial (that was converted to C# by the people at 3D Buzz, see link for more info), it is a 2D Space Shooter, but I think it will help you get started in programming. It is in C# , and there are some nice free assets also! Download each part of the tutorial, then follow along (assets at end of list) : http://forum.unity3d.com/threads/37093-Over-7-hours-of-Unity-Training-Videos-Download-them-now! From this you can work out how to fire a projectile from an enemy in a straight line.
(comments are locked)
|

Please write the code yourself.
If you don't want to code yourself, hire a programmer.
if i know how to implement this i dont ask i know how to code myself if you dont know just pass the question my friend
is anyone want to help me
This site is not the right place to ask for free code. We are here to help others with their code, when they run into problems-
Yes, this OP has been asking for help before, but I think it is a language barrier issue also happening : http://answers.unity3d.com/questions/314030/curve-like-animation.html
However, and consider the OP does provide code of their own (I couldn't help here as it is in C#) : http://answers.unity3d.com/questions/312562/flaoting-move.html
These are just the questions I have seen, and even without looking at the others I I give the benefit of the doubt that this person is simply looking for advice, then help, snippets, pseudocode, and tutorials.
My standard answer for tutorials in C# is :
Bergzerg Arcade : http://www.youtube.com/user/BurgZergArcade?feature=CAQQwRs%3D ,
3D Buzz : http://www.3dbuzz.com/vbforum/sv_videonav.php?fid=808bf515c69066eb13df7952c0d54711 ,
and : http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html
As I said before, I think this may be a language barrier problem, the OP wants to learn =]
Edit : I am upvoting you @robertofantasy , to help with your karma, and because it is a cool screen name (and you write in C#) =]