Giter Site home page Giter Site logo

Comments (5)

kubecz3k avatar kubecz3k commented on June 28, 2024

Thank you a lot! Basically fsm is never expecting to be removed from scene tree (only states and transitions are prepared for this)
But you have couple options to make it work, the fast one:
If you uncheck "only active state on the scene" it in both parent fsm it will work fine.

If you need this option you still can! Second way:
make setup similar to how it's on this screen:
subfsm_screen
(notice script as well as inspector setup of sub-fsm (update mode, manual init))

from finitestatemachine.

MrGreenTea avatar MrGreenTea commented on June 28, 2024

Thanks a lot, the second way worked very well. Could be something to look into, as it's a bit unintuitive.

from finitestatemachine.

kubecz3k avatar kubecz3k commented on June 28, 2024

I think in next update I will make 'only active state on the scene' off by default. Since it has also other implications that user can not be aware of and this option don't need to be on at all most of the time anyway.
This option is there mainly because it can increase performance of your program (like remove from the scene tree rays/areas that are not needed in different states (thats how I'm using it))
Or to have for example different sprites in different states and not code sprite changes or something.

But I think it's there more for people who are aware of what FSM will do if you check it (or at least they will think about that for a second before checking).

from finitestatemachine.

kubecz3k avatar kubecz3k commented on June 28, 2024

@MrGreenTea also one more thing, each state have it's own scene file. It's there for user comfort, you can use it if you want (mean by putting all the child nodes of first level SECOND state inside SECOND scene) (just an info)

from finitestatemachine.

kubecz3k avatar kubecz3k commented on June 28, 2024

Actually I will open it for now. It should be possible to fix this concrete case.

from finitestatemachine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.