playMaker

Author Topic: Run a FSM from another level  (Read 2629 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Run a FSM from another level
« on: January 29, 2014, 10:01:55 AM »
Hi!

Is it possible from level 1 to run another FSM I have in level 2? Or for example when I'm in the Main Menu, I want to start a FSM in level 1, so it's ready when the level starts.

Is this possible? And how?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Run a FSM from another level
« Reply #1 on: January 29, 2014, 10:04:10 AM »
Unity only accesses one Scene at a time, and you can only interact in the current scene.

If you want something to happen when the Scene starts then just put it in the Start state of some FSM and only put it in that Scene.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Run a FSM from another level
« Reply #2 on: January 29, 2014, 10:06:21 AM »
Ok!
Thank you! :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Run a FSM from another level
« Reply #3 on: January 29, 2014, 10:08:36 AM »
But I can maybe have Main Menu and level 1 in the same scene. Just change the camera position.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Run a FSM from another level
« Reply #4 on: January 29, 2014, 10:10:35 AM »
But I can maybe have Main Menu and level 1 in the same scene. Just change the camera position.

That should work fine too.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D