playMaker

Author Topic: Copying States and Pasting States  (Read 1026 times)

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
Copying States and Pasting States
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Copying States and Pasting States
« Reply #1 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