playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
»
Reusing FSM like component/script
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Reusing FSM like component/script (Read 1497 times)
hoyoyo80
Full Member
Posts: 136
Reusing FSM like component/script
«
on:
August 25, 2020, 02:19:40 AM »
Hi all,
Let say im creating some basic mechanics like movement and jump in PM and later i want to use these FSMs to prototype other game quickly by simply adding it like script/component to the new object.How can i achieve this?
Thanks
Logged
Marc Saubion
Beta Group
Junior Playmaker
Posts: 79
Re: Reusing FSM like component/script
«
Reply #1 on:
August 25, 2020, 03:41:13 AM »
You can save your FSMs as templates and reuse them like scripts.
Templates can also be used as sub FSMs with the "run FSM" action. I recommend using the
run FSM func action
that allows for variables communication both ways so you can work with nested FSMs like prefabs.
Logged
hoyoyo80
Full Member
Posts: 136
Re: Reusing FSM like component/script
«
Reply #2 on:
August 25, 2020, 04:07:30 AM »
Ok..so that solved it:) Thanks a lot.
EDIT: i have dig into Run FSM yet and how it is useful in a project. I imagine it like a generic function that all prefabs can use?
«
Last Edit: August 25, 2020, 04:09:45 AM by hoyoyo80
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Feedback
»
Action Requests
»
Reusing FSM like component/script