playMaker

Author Topic: FSM on object(clones).  (Read 2173 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
FSM on object(clones).
« on: March 06, 2013, 08:10:53 AM »
If you create an object through an FSM how do you create a FSM for the (clone)?

My problem is I have a FSM that enables a FSM on a mouse click. This FSM creates the bullet object at the position of the player.

How do I control those bullets?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: FSM on object(clones).
« Reply #1 on: March 06, 2013, 10:42:07 AM »
The bullet should be a prefab with an FSM already on it. The FSM is enabled when the bullet is created.

If you're doing a lot of object creation, you should search the forums for Object Pooling systems.