Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jimmyneutron on March 17, 2016, 08:58:52 AM

Title: best practice for assigning variables? (ie before or during runtime)
Post by: jimmyneutron on March 17, 2016, 08:58:52 AM
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
Title: Re: best practice for assigning variables? (ie before or during runtime)
Post by: jimmyneutron on March 17, 2016, 08:59:20 AM
also, thank you Hutong team for making an excellent product.
Title: Re: best practice for assigning variables? (ie before or during runtime)
Post by: jeanfabre 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