Search the Community
Showing results for tags 'kenttt'.
-
Hi Thanks in Advance I am new to phaser game development. I am trying to add tween on one member of a group. but problem is that if one member of a group is tween all the other member also tween with the same tween. here is code var circleGroup = game.add.group(); const bmd = this.game.add.bitmapData(800, 500); this.game.add.sprite(170, 40, bmd); var uPosX = 20; var uPosY = 20; var tempChild; for (var i = 0; i < 52; i++) { var c = bmd.circle(uPosX, uPosY, 5, 'rgb(0,200,0)'); var sp=this.game.add.sprite(170, 40, c); circleGroup.add(sp); if(i==5){ tempChild=sp; } uPosX += 15; } game.add.tween(tempChild.scale).to({ x:2,y:2 }, 2000, Phaser.Easing.Linear.None, true,true,2000);
-
- kenttt
- nickbyfeet
- (and 5 more)