Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

BoredThing

1
Posts
1
Topics
A member registered 58 days ago

Recent community posts

Thanks so much! I got it to work!

By the way, you typed in player.u instead of player.y :)

ct.js community · Created a new topic Homing Missile
(1 edit)

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;
}