playMaker

Author Topic: Convert FSM to C#,possible?  (Read 1590 times)

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 19
Convert FSM to C#,possible?
« on: April 09, 2019, 08:52:18 AM »
Hi everyone, I work on a big game with playmaker, but, as you know, using a visual scripting program use more resources than C# scripts. Anyone knows if it's possible ? Thank you

Bye

ElProfessor

Thore

  • Sr. Member
  • ****
  • Posts: 480
Re: Convert FSM to C#,possible?
« Reply #1 on: April 09, 2019, 01:26:22 PM »
The resources are negligible. Make sure you keep your FSMs tight and focussed, and use more of them, not less (like with scripts, take advantage of component modularity).

No, you can’t convert FSMs to scripts, because they work totally different. You can try out a mechanic (prototype) and then use that to write a perfect script for that purpose, if you want to.

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Convert FSM to C#,possible?
« Reply #2 on: April 10, 2019, 05:58:18 AM »
Thank you for your answer Thore. But I have another question. We can edit the script of the final FSM. Can we copy this script and apply the text at another script, without FSM ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Convert FSM to C#,possible?
« Reply #3 on: April 10, 2019, 06:02:11 AM »
Hi.
No.
You will need the fsm component.

if you copy the component and paste on another object, it will include your states and actions.

You can also make templates of fsms

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 19
Re: Convert FSM to C#,possible?
« Reply #4 on: April 10, 2019, 07:20:58 AM »
Ok djaydino you took away from me a doubt, thank you !
I'll try other methods for optimize my game.

Thanks to you two

Bye

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Convert FSM to C#,possible?
« Reply #5 on: April 10, 2019, 10:55:44 AM »
Hi.
For which platform are you building?