Adventure Game Studio

Creative Production => Critics' Lounge => Topic started by: deltamatrix on Thu 24/12/2009 13:40:06

Title: Code for shooting an object at an angle
Post by: deltamatrix on Thu 24/12/2009 13:40:06
Hi,

I want to develop some code that enables a robot to shoot at a moving target (i.e: the player character). but rather than spawning a laser object and simply MoveObject, I want the object to continue moving past the target if it misses (i.e: move along an angled trajectory).

My question is, do you know of any existing code or pseudo code available that already does this which I can reuse. I am googling but thought I'd ask here as well.

Thanks

delta
Title: Re: Code for shooting an object at an angle
Post by: Technocrat on Thu 24/12/2009 13:59:29
Wrong forum. You want "Technical Questions", or "Beginner's Technical Questions".
Title: Re: Code for shooting an object at an angle
Post by: deltamatrix on Thu 24/12/2009 14:18:19
ok then. best lock this thread then.