Image randomly moving down when I define x volocity

So I am trying to create a game with phaser and I need an image which moves left to right and bounce against the edges.


Now when I run the code the image moves down slightly as it moves. There isn't any other code in my script which would lower the image.

Read more here:

Content Attribution

This content was originally published by Isaac at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: