• Content Count

  • Joined

  • Last visited

About polkapunk

  • Rank

Profile Information

  • Gender
  • Location
    New York, USA
  1. Thanks Rich! That did the trick! I'm guessing the value's just passed through and hex doesn't work with the canvas tag, or something like that.
  2. My understanding is that the sprite which was drawn most recently is in the front, unless you use its bringToTop() method, which will move it to the top of its display list which it's a child of. I'm not sure if there's another way of doing it. I should also mention that there's a method bringToTop() for groups, but unless I'm misreading the documentation, it's only used to bring a specific sprite to the top of the display list for the group, not move the group to the top of the main display list.
  3. I'm having trouble getting the background color to work in canvas mode. The background displays correctly as white if I do this: var game = new Phaser.Game(640, 480, Phaser.AUTO, '', {create: create});function create() { game.stage.backgroundColor = 0xffffff;}But if I change Phaser.AUTO to Phaser.CANVAS, the background color is the default black. I'm using the latest version of Phaser (1.1.4). It's happening to me in both Firefox and Chrome. Does anyone know if this is a bug? Or am I doing something wrong? Any help would be appreciated. Thanks!