Jump to content

Gradient images from Tiled


Quecken
 Share

Recommended Posts

Hi,

 

I'm well on my way to completing my first game with Phaser, but I have a small problem with my background image. The problem is that it's using gradients, and it will not show up in the game, only a small part of it (which ignores the gradients). I'm importing a json-file from Tiled which has a layer called "background", and that background has a big blue gradient png-image (tile) which acts as the background image. Now, when I import it to my game in Phaser everything looks great, EXCEPT for the background layer. It just shows a small strip of it at the bottom, and it's not even gradient. Everything else is just black. What should I do to make it work?

 

I have tried adding just a standard image and preloading it in my main js-file, but then the image is just flat blue, without gradients. Even though the image I'm using is gradient. I've also tried cleaning my cache and all that.

 

Thank you very much for all the help you can provide. :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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