playMaker

Author Topic: How to Use these Functions?  (Read 1177 times)

rechronicle

  • Full Member
  • ***
  • Posts: 119
  • Mystvaldia
    • Indie RPG Creator
How to Use these Functions?
« on: August 15, 2019, 09:35:50 AM »
Hello,
I'm interested to learn about this list of functions. It may come in handy, but some of it is rather hard to understand.
Is there any explanation on how to use them & what are they supposed to do?

Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to Use these Functions?
« Reply #1 on: August 15, 2019, 10:28:11 AM »
Hi.
Set State and send event you can use to select a state on the fsm

i mostly use set state (state name)

its easy to copy/paste the name

rechronicle

  • Full Member
  • ***
  • Posts: 119
  • Mystvaldia
    • Indie RPG Creator
Re: How to Use these Functions?
« Reply #2 on: August 17, 2019, 08:35:54 AM »
@djaydino yes, I'm mostly using 'Set State' and 'Send Event' for now.

I'm just curious to function like 'init()' and 'preprocess()' for example, it's hard to understand what they're going to do. Or, are they really unusable?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to Use these Functions?
« Reply #3 on: August 18, 2019, 06:59:31 AM »
Hi.
Most of these are used to make fsms work, and are public so that they can work with other fsms and the core of playmaker.

Init() is usually use to do some setup when a script starts. (when the fsm starts)
Preprocess() has something to do with update/late update / fixed update.