playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BigDog

Pages: [1]
1
General Discussion / Re: Send Event to Sub FSM from script
« on: June 27, 2015, 07:28:12 PM »
Great! That's what I need. Thanks!

2
General Discussion / Re: Send Event to Sub FSM from script
« on: June 26, 2015, 06:33:53 PM »
I eventually managed send event to second level sub fsm from script. The trick is to set the events to global event, which I needn't had to do with the first level sub fsm.

Thanks

3
General Discussion / Re: Send Event to Sub FSM from script
« on: June 26, 2015, 06:10:50 PM »
I come across another issue with sending event to sub fsm. The issue is it doesn't work after one level of sub fsm. Is this by design or is this a bug? This makes the template system very limiting.

Thanks

4
Hi Jean

It's mention here in 1.8's improvement, the fourth last point.

https://hutonggames.fogbugz.com/?W311

Thanks.

5
General Discussion / Re: Send Event to Sub FSM from script
« on: May 30, 2015, 07:41:01 PM »
Hi, I just solved my own problem.

The trick is to use the obscure FSM property of the fsm.

Code: [Select]
HutongGames.PlayMaker.FsmEventTarget etarget = new HutongGames.PlayMaker.FsmEventTarget();
etarget.target = HutongGames.PlayMaker.FsmEventTarget.EventTarget.SubFSMs;

m_MovementFSM.Fsm.Event(etarget, "arrived");

Thanks.

6
General Discussion / Send Event to Sub FSM from script[SOLVED]
« on: May 30, 2015, 07:15:03 PM »
In my effect to practice good software engineering, I am trying to use "Run FSM" more. But I have come to a roadblock. I can't send event directly to the 'sub FSM'.

Before I used 'sub FSM', I have a state waiting on a event which gets send from C# script. Now this state is moved into the template. And it no longer received the event. How can I get send a event to a sub fsm?

Thanks

7
Pre-release Discussion / 1.8 Cache Component Optimization Question
« on: May 25, 2015, 03:04:33 PM »
Hi Playmaker,

I want to understand more about the new optimization in 1.8 which cache component access for actions. My question is what action will benefit from this?

1) Does send event/get/set variable from FSM benefit from this?
2) Does get/set property of component benefit from this?

Thanks!
David

Pages: [1]