Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kentcheung2000 on July 30, 2018, 10:24:21 PM

Title: Copying States and Pasting States
Post by: kentcheung2000 on July 30, 2018, 10:24:21 PM
Hi,

I am trying to copy the states from one Sprite to another.  The states, variables, and global events can copy over.  Only the local events cannot copy.  The state can still function without the local events. 

Is this ok or I have to type the local events once more?

KC
Title: Re: Copying States and Pasting States
Post by: jeanfabre on July 31, 2018, 03:48:57 AM
Hi,

 uhm, I'll enquire if it's by design that copy paste doesn't carry over the necessary local event, but yes, it's ok to have several fsm all with similar local events. I have that a lot and it's not bad, I have for example a lot of local event like "YES" "DONE" "ERROR", and I don't want them to be global, as I don't want them to be passed around, they mean nothing globally for a project logic. global event should always have a strong semantic, like "PLAYER IS DEAD" "LOAD MAIN MENU", stuff like that

 Bye,

 Jean