x


2d targetting problem

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#

more ▼

asked Sep 08 '12 at 11:33 AM

robertofantasy gravatar image

robertofantasy
13 1 6 11

Please write the code yourself.

If you don't want to code yourself, hire a programmer.

Sep 08 '12 at 11:36 AM Piflik

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

Sep 08 '12 at 12:57 PM robertofantasy

is anyone want to help me

Sep 08 '12 at 12:58 PM robertofantasy

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-

Sep 08 '12 at 01:05 PM Piflik

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#) =]

Sep 08 '12 at 06:02 PM alucardj
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Sep 09 '12 at 06:17 PM

alucardj gravatar image

alucardj
13.9k 40 57 88

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1071
x24

asked: Sep 08 '12 at 11:33 AM

Seen: 270 times

Last Updated: Sep 10 '12 at 02:47 PM