playMaker

Author Topic: Hi - Multiple FSM's  (Read 3928 times)

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Hi - Multiple FSM's
« on: March 15, 2013, 05:27:05 AM »
Hi Guys

I have recently purchased Playmaker and being a non coder that tried to get into learning C# - until I found Playmaker that is :)

I am currently going through the tutorials and have a few thoughts going through my head about my current project :)

I am working out the iOS controls, I think I have it sorted (in my head anyway!)

My main question, is it okay to have more than 1 FSM on an object?

On the character it has the movement FSM which receives events from the touch manager. I then intend to add another FSM which will control the characters health.

Unless I set up a listener state, which listens for movement and damage?  - still pretty new to this :)

Thanks

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Hi - Multiple FSM's
« Reply #1 on: March 15, 2013, 07:23:44 AM »
Yes, multiple FSM's are very common. If you want one object to simultaneously do two different things then you can add two FSM's and it will run both independently at the same time.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Re: Hi - Multiple FSM's
« Reply #2 on: March 19, 2013, 07:21:46 AM »
Sorry for not getting back sooner - my Unity crashed so I can to restart what I had already done Bah! :)

Thanks for answering