Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

outlawed_panda

4
Posts
2
Topics
A member registered Jan 22, 2021

Recent community posts

This is the only code I have and when ever I launch theres no unusual errors but the screens blank

var whichDirX = 0; 
//MoveLeft is A
//MoveRight is D
while (ct.actions.MoveLeft.pressed && whichDirX < 1) {
    whichDirX += 0.1;

if (whichDirX > 0 && ct.actions.MoveLeft.pressed == false) {
    whichDirX -= 0.1;
}
while (ct.actions.MoveRight.pressed && whichDirX > -1) {
    whichDirX -= 0.1;

if (whichDirX < 0 && ct.actions.MoveRight.pressed == false) {
    whichDirX += 0.1;
}
this.x += 8 * ct.delta * this.whichDirX;
this.move();

Hi, I'm fairly new to JS and very new to ct.js but I feel like it has a lot of potential, what can I do as someone with limited knowledge of programming do to help ct.js?

thanks!

My character moves with WASD but how do make my character point/rotate to where ever the cursor is at?