Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rechronicle on December 20, 2019, 02:15:18 AM

Title: Basic enemy AI Movement for top-down space shooter?
Post by: rechronicle on December 20, 2019, 02:15:18 AM
Hello,
I want to make a space ship enemy that flies around in 2D world orientation. How to control the area of where it hovers or make a line of path that the space ship can follow?

I believe it's really simple to do.
Thanks!
Title: Re: Basic enemy AI Movement for top-down space shooter?
Post by: jeanfabre on December 20, 2019, 03:01:57 AM
Hi,

 use something like Curvy, it has playmaker support:

https://assetstore.unity.com/packages/tools/level-design/curvy-splines-7038

Bye,

 Jean
Title: Re: Basic enemy AI Movement for top-down space shooter?
Post by: rechronicle on December 20, 2019, 09:35:57 AM
A very interesting tool. Might consider to get it someday.

Just curious, what if I want to implement it using PM (the basic simplest one)? What things to note in order to achieve it?

Thanks!
Title: Re: Basic enemy AI Movement for top-down space shooter?
Post by: tcmeric on December 20, 2019, 10:40:35 AM
A free simple spline tool is out on github:https://github.com/SebLague/Path-Creator

I made some playmaker actions for it for basic use cases: https://github.com/dumbgamedev/Path-Creator-PlaymakerActions

Maybe you could program your own spline in playmaker??? But it wouldnt be recommended.
Title: Re: Basic enemy AI Movement for top-down space shooter?
Post by: rechronicle on December 20, 2019, 10:15:48 PM
Whoa, it might be taking me forever to program it right away.

Thanks for mentioning the tool. I will use it when in urgent/no other way around. Starting to think about using coordinate to determine the path for now.