121
Ask a Question / I Think it is a Timing question - Actor Behavior
« on: November 19, 2016, 05:00:01 am »
Hi,
I've tried to pare everything back to basics to try and work out the proper sequence.
A simple scene with nothing in it called BlueScene.
A single Actor Behavior called DrawShapeBehavior
A Single Actor (not positioned on the scene) called Phantom because it will be invisible i.e. no animation (although I've added an animation for debugging purposes)
BlueScene contains only one event and it is attached called '01 BlueSceneCreation'.
The Phantom actor contains 2 events. A very simple single line debug Create attached as '02 PhantomCreate'; and a timer event attached as '03 PhantomAfterNSecs'.
The DrawShapeBehavior contains 3 events a Created, a Drawing and a timing 'after every N secs'. However we can ignore all except 'creating' as I seem to have a problem communicating with the behavior. The 'Created' event is attached as '04 BehaviorCreate' and just contains a single debug statement.
Finally, I have a screen shot of the program running attached as '05 DebugOutput'
It shows that the phantom actor cannot access the behavior even after waiting .1Seconds after being created. I had a similar program running when I was using a behavior attached to a scene. Any ideas?
Thanks,
Oliver
P.S. Is this the place to post or should I be using CHAT instead?
I've tried to pare everything back to basics to try and work out the proper sequence.
A simple scene with nothing in it called BlueScene.
A single Actor Behavior called DrawShapeBehavior
A Single Actor (not positioned on the scene) called Phantom because it will be invisible i.e. no animation (although I've added an animation for debugging purposes)
BlueScene contains only one event and it is attached called '01 BlueSceneCreation'.
The Phantom actor contains 2 events. A very simple single line debug Create attached as '02 PhantomCreate'; and a timer event attached as '03 PhantomAfterNSecs'.
The DrawShapeBehavior contains 3 events a Created, a Drawing and a timing 'after every N secs'. However we can ignore all except 'creating' as I seem to have a problem communicating with the behavior. The 'Created' event is attached as '04 BehaviorCreate' and just contains a single debug statement.
Finally, I have a screen shot of the program running attached as '05 DebugOutput'
It shows that the phantom actor cannot access the behavior even after waiting .1Seconds after being created. I had a similar program running when I was using a behavior attached to a scene. Any ideas?
Thanks,
Oliver
P.S. Is this the place to post or should I be using CHAT instead?