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.


Topics - jamesvhyde

Pages: 1
1
Ask a Question / Can you control the order of execution of behaviors?
« on: July 25, 2011, 05:53:16 pm »
I have an actor with four behaviors, each of which has a handler for collision. Is there a way I can control in what order the four handlers execute? One way to solve this would be to put all the collision code in one behavior, but I'd like to keep the behaviors as independent as possible.

2
It seems that I cannot add the same behavior multiple times to the same actor. I want to do this because the behavior behaves differently with different values for the parameters.

For example, in the Action Adventure template, the Sword Attack behavior can easily be modified for other weapons or spells simply be changing the attributes. An axe may have different behavior from a sword, but that can be controlled by behavior of the weapon actors. The actual attack from the player actor's point of view is the same. So I would like to add the Sword Attack behavior to the player actor twice.

Is there a good way to do this?

EDIT:
The answer to my original question, "Can you add the same behavior multiple times to one actor?" is no, at least not currently. See below for an acceptable solution to my problem.

Pages: 1