Hi
Is there any way to write a behaior for each object instead of writing every thing in event sheet?
Some thing like Director, Flash, Unity.
regards,
Saeed
Hi
Is there any way to write a behaior for each object instead of writing every thing in event sheet?
Some thing like Director, Flash, Unity.
regards,
Saeed
Yes, you can create behaviors. See the documentation (wiki).
It’s not easy but definitely worth learning. You should be comfortable with creating extensions first. You can learn from the wiki, videos and community made extensions and behaviors. It takes time to learn.
Behaviors use the same conditions, actions and expression but they’re arranged differently and require setting up things like parameters and other options. There are a few events specific to functions. (by arranged differently, I mean that they’re mostly broken up into smaller seperate functions instead of 1 large event sheet. While not mandatory, splitting up the code allows for access to things in the behavior from within the main event sheet as well as making the behavior easier to read and mange. The structure and the way the actual events are processed is identical to the main event sheet. )
Behaviors can have a lot of functions but the functions are usually small. You might have a function to set a property and another to retrieve the value. You can also add actions, conditions and expressions. There are step events that run before or after each frame.
Start with something small. Either completely from scratch, extracted or modify an existing community made behavior.
Behaviors can be created to work with 1 type of object like a shape painter or any type. You create the behavior then assign it to the object.
Hi
Is there any event-based-behavior in extension?
IDK what you mean by event based. There is a step event or function that runs on every frame. You can add conditions and what not to it.