|
Hi i would like to know if its possible to get the ai to move forward without using waypoints im making 2d shoot em up flying game?
(comments are locked)
|
|
I see you answered your own question, but I wanted to elaborate. Yes, there are a number of ways depending on how complicated you want to make it. At the simplest level you could do:
if you wanted something more complicated you could do something like:
This would have the enemy swerve to avoid the oncoming obstacle. It swerves predictably right the straightens out. It is very basic, it won't turn while not facing the global forward so it is a predictable AI pattern for shoot 'em up kind of games.
(comments are locked)
|
|
transform.Translate(0,0,speed/- 20*Time.deltaTime); put it in the enemyscript
(comments are locked)
|
