playMaker

Author Topic: Basic enemy AI Movement for top-down space shooter?  (Read 191 times)

rechronicle

  • Junior Playmaker
  • **
  • Posts: 92
  • Medievaliant
    • View Profile
    • Indie RPG Creator
Basic enemy AI Movement for top-down space shooter?
« on: December 20, 2019, 12: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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14949
  • Official Playmaker Support
    • View Profile
Re: Basic enemy AI Movement for top-down space shooter?
« Reply #1 on: December 20, 2019, 01: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

rechronicle

  • Junior Playmaker
  • **
  • Posts: 92
  • Medievaliant
    • View Profile
    • Indie RPG Creator
Re: Basic enemy AI Movement for top-down space shooter?
« Reply #2 on: December 20, 2019, 07: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!

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 743
    • View Profile
Re: Basic enemy AI Movement for top-down space shooter?
« Reply #3 on: December 20, 2019, 08: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.

rechronicle

  • Junior Playmaker
  • **
  • Posts: 92
  • Medievaliant
    • View Profile
    • Indie RPG Creator
Re: Basic enemy AI Movement for top-down space shooter?
« Reply #4 on: December 20, 2019, 08: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.