Page 1 of 1

Actor should stop its course.

PostPosted: Mon Feb 13, 2006 11:31 pm
by Diana Kennedy
Hi!

I am again a bit stuck.

Here's what I do: When an animal is shot and lies in the grass, a timer is created that makes appear a voluture after some time. The voluture is created in the sky and with the help of makslanes cool code bit:
Code: Select all
angle = direction(x, y, yellowtarpan .x, yellowtarpan .y);
directional_velocity = 8;


The voluture flies toward the dead animal, whereever it lays. Cool! At collision, the voluture changes animation and begins to eat the carcass. But...hey! all while doing this, it flies away. (beyond the carcass, out of the view.) How can I make that the volture, once it collides with the animal, stops its course and sticks on the carcass to rip it?

PostPosted: Tue Feb 14, 2006 12:06 am
by Kodo
if you are setting the directional velocity when the vulture is created then just
set directional_velocity = 0 on collsion with the carcus. Maybe?

PostPosted: Tue Feb 14, 2006 12:25 am
by Diana Kennedy
Dr Reed - perfect! This does the job! Thank you!! 8) 8) 8)