Damla Eker

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Hi all, I cannot add a group in an another group. for example; var mainGroup=this.add.group(); var subGroup=this.add.group(); var bg=this.add.sprite(200,300,"background"); var bonusImg=this.add.sprite(200,300,"bonusImage"); subGroup.add(bonusImg); subGroup.add(bg); mainGroup.add(subGroup); This was working on Phaser 2 but not working on Phaser 3. Is there any way to solve it?
  2. Damla Eker

    addToFileList in Phaser 3

    Ah yes I realized after posting here and posted also Phaser 3. Thanks
  3. Damla Eker

    addToFileList

    Thank you @photonstorm
  4. Damla Eker

    addToFileList

    Hi everyone, Is there an equivalent of "addToFileList" in Phaser 3?
  5. Damla Eker

    addToFileList in Phaser 3

    Hi everyone, Is there an equivalent of "addToFileList" in Phaser 3?
  6. Damla Eker

    Dynamically created image masks

    Hi all, I need to display a large image and dynamically hide sections of it. I already use masking to specify which parts should be displayed. The code I use to achieve this is in the form: this._topMask = game.add.graphics(0, 0); this._topMask.drawRect(0, 170, game.width, vm.ActiveGameHeight - 320); this.defaultGroup.mask = this._topMask; This is useful in that it gives me a rectangle within which the image renders. Now I need to dynamically block sections of that rectange and create areas that are not rendered. Ideally, I would like to be able to create masks similar to the image below. I cannot use presaved images because the position of the rectangles change dynamically. What is the most performance optimised way to achieve this in Phaser? (I am on version 2.4.4)