Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ElProfessor595 on April 09, 2019, 08:52:18 AM

Title: Convert FSM to C#,possible?
Post by: ElProfessor595 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
Title: Re: Convert FSM to C#,possible?
Post by: Thore 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.
Title: Re: Convert FSM to C#,possible?
Post by: ElProfessor595 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 ?
Title: Re: Convert FSM to C#,possible?
Post by: djaydino 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
Title: Re: Convert FSM to C#,possible?
Post by: ElProfessor595 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
Title: Re: Convert FSM to C#,possible?
Post by: djaydino on April 10, 2019, 10:55:44 AM
Hi.
For which platform are you building?