You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Player and Mauro sprites are generated as a mirrored image.
The idea here, is to cut the image in the half and do the change of the left and right sprite via JavaScript.
Before this was done using this.player.scale.x = -1. But this approach generates a bug since the sprite is moved outside the box. So when walking from right to left the player sprite be over the pipe and not collide properly.
The text was updated successfully, but these errors were encountered:
The Player and Mauro sprites are generated as a mirrored image.
The idea here, is to cut the image in the half and do the change of the left and right sprite via JavaScript.
Before this was done using
this.player.scale.x = -1
. But this approach generates a bug since the sprite is moved outside the box. So when walking from right to left the player sprite be over the pipe and not collide properly.The text was updated successfully, but these errors were encountered: