I new to Phaser and I am trying to create a basic breakout style game but the ball won't move. In the console I am given the error "Uncaught TypeError: Cannot set property 'x' of undefined". The code it says is wrong is this:
//add velocity
this.ball.velocity.x = 200;
this.ball.velocity.y = 200;
please help
I new to Phaser and I am trying to create a basic breakout style game but the ball won't move. In the console I am given the error "Uncaught TypeError: Cannot set property 'x' of undefined". The code it says is wrong is this: //add velocity this.ball.velocity.x = 200; this.ball.velocity.y = 200; please help