playMaker

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

ElProfessor595

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Convert FSM to C#,possible?
« on: April 09, 2019, 05: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

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Convert FSM to C#,possible?
« Reply #1 on: April 09, 2019, 10:26:22 AM »
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: 8
    • View Profile
Re: Convert FSM to C#,possible?
« Reply #2 on: April 10, 2019, 02: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: 4106
    • View Profile
    • jinxtergames
Re: Convert FSM to C#,possible?
« Reply #3 on: April 10, 2019, 03: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: 8
    • View Profile
Re: Convert FSM to C#,possible?
« Reply #4 on: April 10, 2019, 04: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: 4106
    • View Profile
    • jinxtergames
Re: Convert FSM to C#,possible?
« Reply #5 on: April 10, 2019, 07:55:44 AM »
Hi.
For which platform are you building?