Image not displaying in phaser 3

Viewed 972

Recently I started making a game with Phaser 3.

I made an image player.png. Now comes the weird part. Whenever I try to display player.png it won't display on screen. Path, filename, console everything is correct. Code also has no errors. Now when I replaced the png image with another image. Surprise! It shows up. In fact any other image would be displayed other than player.png.

Please can anyone figure out why?

1 Answers

could be format issue. try opening your image in something like photoshop and save it again as png.

Related