playMaker

Author Topic: best practice for assigning variables? (ie before or during runtime)  (Read 1562 times)

jimmyneutron

  • Playmaker Newbie
  • *
  • Posts: 15
Hi playmaker buddies,

just a very simple question I've been wondering about for a while..
Basically I have a meta fsm that stores variables that are used by other fsms, these variables are constant, and once assigned do not need to change.

What I was wondering was, is there any advantage/disadvantage to assigning variables before runtime?

maybe a bit of a stupid question, but it is something that happens often so I was wondering what the best practice was.

all the best,
jimmy

jimmyneutron

  • Playmaker Newbie
  • *
  • Posts: 15
Re: best practice for assigning variables? (ie before or during runtime)
« Reply #1 on: March 17, 2016, 08:59:20 AM »
also, thank you Hutong team for making an excellent product.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: best practice for assigning variables? (ie before or during runtime)
« Reply #2 on: March 17, 2016, 10:04:10 AM »
Hi,

 yes, it's better to set them during editing, they will be accessible straigth away when starting playing. and it's less processing to take place on start for your game, which is always better.

Bye,

 Jean