Jump to content

Problem with setALL and groups


micouy
 Share

Recommended Posts

Hi, I'm new to Phaser. I want to create a group named group, add sprites or tileSprites and set their parameters, such as tilePosition or scale. When I do it, nothing changes and console says "group.setALL is not a function". What am I doing wrong? (Shortened code below)

group = game.add.group();
sprite1 = game.add.sprite(100, 100, 'zaba');
group.add(sprite1);
group.setALL('scale.setTo', 2);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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