Hello,
i’m making a geometry football game, where players and ball are circles.
When player hits the ball with pressed key, i would like to ball throw with 3 times more velocity.
To detect event collision between sprites i used to .onBeginContact.add, but when i try to change ball speed after that like this:: (sprite.body.velocity.x*=3) im getting an error: Cannot read property ‘body’ of null.
how to change speed of movement sprite in p2 psychics, during move?