the bullet cant see to move at all
`function bullet() { this.x=playerx; this.y=playery; this.init=function(){ this.x+=5; draw(this.x,this.y,10,10,"blue"); console.log(this.x) } }
function bullet() {
this.x=playerx;
this.y=playery;
this.init=function(){
this.x+=5;
draw(this.x,this.y,10,10,"blue");
console.log(this.x)
}
}
in another function if(k.keyCode==17){ bullets=new bullet(); bullets.init();
}
if(k.keyCode==17){
bullets=new bullet();
bullets.init();
}