• Content count

  • Joined

  • Last visited

  1. Can't create new objects in phaser group

    Just found that that the board sprite (tabuleiro.png) was being rendered AFTER the creation of the group. Therefore, every instance of capetinha was beign overlayed by it. Thank you everyone.
  2. Can't create new objects in phaser group

    What version of Phaser are you using?
  3. Can't create new objects in phaser group

    The sprite doesn't appears. After a while I used "capetinhas.countLiving" on the console and it returned me 1. Therefore, the object is created but the sprite doesn't load. P.S. I don't get any error.
  4. Hello comrades, I'm new to phaser and I can't seem to create new objects to the group "capetinhas", even though I can load the sprite through game.add.sprite. Here's the code: var game = new Phaser.Game(448, 448, Phaser.AUTO, '', { preload: preload, create: create, update: update }); function preload () { game.load.image('tabuleiro','assets/tabuleiro.png') game.load.spritesheet('devil','assets/devil.png',32,32); var capetinhas; } function create (){ capetinhas = game.add.group(); game.add.sprite(window.width,0,'tabuleiro');//loading the background game.add.sprite(128,128,'devil'); // this works capetinhas.create(32,32,'devil'); // this doesnt } function update (){ } Any helpe would be really apreciated. Thanks in advance.