Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Honorary 'Adroit' Mechanic
Picture of BruceM
Posted
Hi,

Is it possible for the start or end trigger of one event to act as a trigger for another event,
In other words can behaviours be dependant or even co-dependant?

For instance, I may have three objects A, B and C each of which has a behaviour associated with it and each behaviour has an event start and event end.

As it happens I want behaviour A to be followed by B which in turn is followed by C.

I could do this by rigging the behavious start and end times accordingly..

a start 100 end 200
b 300 100
c 400 200

However if I change start or end times in 'a' it means I'll have to change the timings for 'b' and 'c' also.

Am I able instead to specify

a start 100 end 200
b start 'when a ends' end 100
c start 'when b ends' end 200

Thanks

Bruce
 
Posts: 302 | Location: London - UK | Registered: May 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Harpo
Posted Hide Post
Yes, you can do that by using the Behaviour->Actions->When Not Active->Trigger Behaviour and selecting the object you want to trigger next. That behaviour will be triggered on the end event which could be a time or, say, the end of a path.

So if you set a start time of 0 (or some delay after trigger) and an end time for each object, the object's end time will be based on the time of the trigger. That means you only need to change the end time on one object to adjust all others.

You can have the last object trigger the first object if you want to loop forever.
 
Posts: 3215 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Adroit' Mechanic
Picture of BruceM
Posted Hide Post
Neat! Now the Action tab makes a lot more sense!

Also - is is possible to create a single behaviour and assign it to several objects?


eg three objects to appear at the same time - rather than create three identical behaviours create just one and apply it to all three objects.

-Bruce
 
Posts: 302 | Location: London - UK | Registered: May 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Harpo
Posted Hide Post
Yes you can.

To apply a behaviour to an object go to the Components tab of the Object Editor. Select the object then select the behaviour.
 
Posts: 3215 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Adroit' Mechanic
Picture of BruceM
Posted Hide Post
Thanks Harpo - worked perfectly.

-Bruce
 
Posts: 302 | Location: London - UK | Registered: May 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
VM Staff
Picture of Derry
Posted Hide Post
sure hope we're going to see some examples of your work that we can show off!

- Derry
 
Posts: 4167 | Location: Toronto, Canada | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.