Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Amy on May 02, 2012, 07:27:04 PM

Title: When to use variables, events and globals.
Post by: Amy on May 02, 2012, 07:27:04 PM
I'm having a bit of trouble understanding variable differences. I understand Int is a number, String is text and gameobject effects the gameobject but WHEN to use them or events is always confusing and feels like guess work. Is there any person who can do a one or two sentence explanation of what each variable (or global events) is best utilized being used for?
Title: Re: When to use variables, events and globals.
Post by: Alex Chouls on May 02, 2012, 07:55:15 PM
I'll try to beef up the docs for this. But in the meantime, here's a quick summary:

Variable Types:


TIP: Rollover a parameter in an Action to see its Type. This will tell you what type of variable to make.

Global Events: If you want to send events between FSMs they must be marked Global.

Global Variables: If you want to easily access a variable from any FSM, make a global variable (e.g., NumberOfLives, Score, PlayerName...)

Hope this helps some!
Title: Re: When to use variables, events and globals.
Post by: Amy on May 03, 2012, 03:51:45 PM
While helpful, I think beefier explanations into the documents would be most appreciated <3