Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

BoredThing

2
Posts
1
Topics
A member registered Jun 26, 2019

Recent community posts

Thanks so much! I got it to work!

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

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