Two quick questions about Behaviors
firemaplegames
Member Posts: 3,211
Hey,
I do not really understand what "Create Group" and "Run to Completion" do. If somebody could help clarify...
First, I have not used a Group yet for any of my behaviors...
Is that just for visual organization?
does it have a correlation in other programming languages?
Secondly, on some behaviors, the is a Run to completion check box...
I do not have a solid grasp on what this actually does or is used for.
Why would I NOT want one of my behaviors to run to completion?
For example, on a Timer, I can have it set like this:
EVERY 1 second
Do something
Run to completion
I just don't understand what that means.
And finally, does the vertical stacking order of behaviors have anything to do with the order that they are executed? (i guess that's 3 questions...)
Any help appreciated!
While I'm waiting for my game to be reviewed, I figure I'll learn every nook and cranny of this program!
Thanks!
Joe
I do not really understand what "Create Group" and "Run to Completion" do. If somebody could help clarify...
First, I have not used a Group yet for any of my behaviors...
Is that just for visual organization?
does it have a correlation in other programming languages?
Secondly, on some behaviors, the is a Run to completion check box...
I do not have a solid grasp on what this actually does or is used for.
Why would I NOT want one of my behaviors to run to completion?
For example, on a Timer, I can have it set like this:
EVERY 1 second
Do something
Run to completion
I just don't understand what that means.
And finally, does the vertical stacking order of behaviors have anything to do with the order that they are executed? (i guess that's 3 questions...)
Any help appreciated!
While I'm waiting for my game to be reviewed, I figure I'll learn every nook and cranny of this program!
Thanks!
Joe
Comments
does run to completion mean the something will be completed even if every 1 second means it's time to
do something again? In other words completion of the do something takes priority over timer if the do something takes
longer than 1 second?!
"If you select the 'Run to completion' option, even if controlling conditions are no longer valid, the behavior will still complete its task. However, this will only work with the 'After' and 'For' options for the controlling conditions. "
http://gamesalad.com/wiki/behaviors_reference:timer
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left