Thanks so much! I got it to work!
By the way, you typed in player.u instead of player.y :)
I'm attempting to make a homing missile sort of thing, and it won't work. Being a beginner, I'm not understanding why. Here's the code:
var degrees = ct.u.pointDirection(this.x, this.y, player);
this.rotation = degrees;
this.direction = this.rotation;
this.speed = 5;
var player = ct.types.list["Player"][0];
if (player) {
return player.x, player.y;
}