Jump to content

Sprite turned black when sponsor test the game


playh5
 Share

Recommended Posts

Hi, I have a game sent to my regular sponsor. But when he checks, some sprites turned black. Any ideas or work around to resolve this issues? What are the possible reasons why it is happening?

 

Before sending it to the sponsor, I have tested to my laptop's ie,chrome and firefox browsers and with tablets and mobile phone the game works perfectly fine.

 

Thanks!

Link to comment
Share on other sites

Hi Rich, the dimension of the sprite is just 71x67. Based on the screenshot the sponsor sent me, the sprites appears to turned black in random because there are 5 different sprites on the same size.

 

*EDIT: Here is how I put the sprites on canvas

monsterList = ['red','green','violet','blue','pink'];var idx = Math.floor(Math.random()*5); var m = this.game.add.sprite(Math.random()*320,Math.random()*(1+480-100)+100,'monster-'+monsterList[idx]);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...