• Content Count

  • Joined

  • Last visited

  1. Thank you very much for this solution, really helped me a lot.
  2. Hi, i have the following code: let button =; button.fillStyle(0x000000, 0.6); // color, alpha button.fillRoundedRect(0, 0, 100, 100, 12); // x, y, width, height, radius button.lineStyle(3, 0x6a7901, 1); // lineWidth, color, alpha button.strokeRoundedRect(3, 3, 94, 94, 10); // x, y, width, height, radius button.setInteractive(new Phaser.Geom.Rectangle(0, 0, 100, 100), Phaser.Geom.Rectangle.Contains); button.input.cursor = "pointer"; = "button_test"; What i need now is to make somehow only line from graphic to be able to change all the time from 0x6a7901 to 0xffffff (repeat: -1). Any ideas how to do this with tween task or maybe with something else ? Thanks in advance.
  3. Hi, recently i moved from Phaser 2 to Phaser 3 and i started some new project. Here is my problem: In Phaser 2 its easy to add text to sprite like this: var sprite = game.add.sprite(...); var button_style = { font: "27px Verdana", fontWeight: "bold", align: "center", fill: "#000000", stroke: '#ffffff', strokeThickness: 2 }; button_text = game.add.text(0, 0, 'blabla', button_style); sprite.addChild(button_text); After few days i am very tired of searching to get solution on Phaser 3 to add text on sprite. Can anybody help me please ? Thanks in advance.