I need someone to create more advance Enemy Ai for space shooter, ... I do have a basic one
That needs some improving... which moves Enemies, and make them shot...
But I would like a couple of variation with improved AI... to make enemy more intelligent ...
In current script enemy (just like in any tower defence game) moves randomly shot randomly, and moves along z axes till it reaches end of the screen, where if not shoot by player get destroyed ...
This is the basic Script that moves the ship;
public class Enemy_EvasiveManeuver1 : MonoBehaviour
{
public Boundary boundary;
public float tilt;
public float dodge;
public float smoothing;
public Vector2 startWait;
public Vector2 maneuverTime;
public Vector2 maneuverWait;
private float currentSpeed;
private float targetManeuver;
public float speedZ;
void Start ()
{
[login to view URL] = [login to view URL] * speedZ;// this moves forward
currentSpeed = rigidbody.velocity.z;
StartCoroutine(Evade());
}
IEnumerator Evade ()// this randomly moves left and right and keeps the enemy within screen
{
yield return new WaitForSeconds ([login to view URL] (startWait.x, startWait.y));
while (true)
{
targetManeuver = [login to view URL] (1, dodge) * [login to view URL] (transform.position.x);
yield return new WaitForSeconds ([login to view URL] (maneuverTime.x, maneuverTime.y));
targetManeuver = 0;
yield return new WaitForSeconds ([login to view URL] (maneuverWait.x, maneuverWait.y));
}
}
void FixedUpdate ()
{
float newManeuver = [login to view URL] (rigidbody.velocity.x, targetManeuver, smoothing * [login to view URL]);
[login to view URL] = new Vector3 (newManeuver, 0.0f, currentSpeed);
[login to view URL] = new Vector3
(
[login to view URL](rigidbody.position.x, [login to view URL], [login to view URL]),
0.0f,
[login to view URL](rigidbody.position.z, [login to view URL], [login to view URL])
);
[login to view URL] = [login to view URL] (0, 0, rigidbody.velocity.x * -tilt);
}
}
but I need few more a bit complex and intelligent attacking maneuvers....
First Maneuver
1- Once the enemy ship detects the player it does not pass him, instead hoover around and tries to kill him/shoot.
combination of evade and attack movements , Enemy ship stays around and fight the player ( does not pass him) till one of them dies...
2nd Maneuver
Same but, with variation ... if enemy would move in an arch like movement not strait diagonally... or anything you can suggest that is better
3rd Maneuver
Enemy ship that is trying to avoid the player and pass and shoot into boundary( bottom of the screen) that we defend , this ship would also detect when player or players bullet are close(enter his collider- detection) and then teleport somewhere randomly on the screen .
- Teleport skill needs to be cool-down ability, I also need to be able to fine tune the time how long it takes to teleport again.
4. Same idea but instead of teleporting enemy rise shields ... also cool-down ability...
I will give more details if job granted ... No enough words to explain everything , but it should make sense to any good programmer..
Hi,
I have over two years experience with Unity3D.
I can do this job, but now I'm working to something and can't do it fast, will take me about 3 days.
Let me know if 3 days is fine to you too!
Best Regards,
Nechifor Marian
£111 GBP trong 4 ngày
4,9 (68 nhận xét)
6,6
6,6
13 freelancer chào giá trung bình £156 GBP cho công việc này
Hi,
I've done several unity scripting using c# before, I'm using unity 4.3 Free edition. so I can't run any features that requires the full professional edition of unity.
although I'm not a talented graphical art designer, but I can write good coding. as far as I understood, the characters prefabs' animations are ready, and you want to control movement, teleporting and rising shields. correct?
for the teleporting, and shielding. does your model have the visual effects for them? could you explain how would you like to control the teleporting time?
if there are any unity assets on asset store that helps this task, would you like to use them?
also, would you provide me with the full source code and project assets to test on, or shall I make a demo scene with simple objects?
thanks
Hi,
Funny ... I am currently working on a space shooter myself and I already have the teleporting behavior AI and I was going to add the random movement to my game.
I am a unity programmer with experience in both javascript and c# and I'm well versed in the different aspects of game development. Your request is pretty simple and can easily be done within a day. I am interested in taking on this job, and I am even more interested in seeing what your final release will look like. I am very passionate about games and always love to see what other developers have to offer.
Thank you,
Please, I hope to get a response from you.
Hello Sir,
i have 9 year experience. i can do any kind of 3d graphics works. i have attached some of my best works in my profile kindly check it .if my work satisfy your needs then pay me and i am sure it will you can check my ratings, that will be a great if you give me a chance to provide you the
best work in Freelance at affordable price......Thanks
I'm very very experienced with C# and Unity and can write you an awesome AI system, and explain to you why I'm doing what each step of the way! You won't be disappointed.
that ia script is very primitive you should implement a state machine or a state pattern.
i would recommend a state machine cause this is a very small script.
the behaviour you describe for 1 and 2 remembers me of galaga.
is that what you want to achieve?
thanks for your time.