Actor should stop its course.

Talk about making games.

Actor should stop its course.

Postby Diana Kennedy » Mon Feb 13, 2006 11:31 pm

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?
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby Kodo » Tue Feb 14, 2006 12:06 am

if you are setting the directional velocity when the vulture is created then just
set directional_velocity = 0 on collsion with the carcus. Maybe?
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby Diana Kennedy » Tue Feb 14, 2006 12:25 am

Dr Reed - perfect! This does the job! Thank you!! 8) 8) 8)
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest