[Tutor] One object looking at another at alll times

Justin Sheehy dworkin@ccs.neu.edu
28 Mar 2000 12:35:50 -0500


rc@mlode.com (Rick Christian) writes:

> I keep getting an error with the following script:

I suggest posting the error message here.  That would make diagnosis a 
lot easier.

> def ontimechanged():
>   yrot = target.Position[0]           # Variable "yrot" equals Target's x
>   view.Direction = (yrot, 0, 0)     # Target is the name of another object
>   pass

Are "target" and "view" globals?

You can probably leave out the "pass" here.

-Justin