Jump to content


  • Content Count

  • Joined

  • Last visited

  1. thanks, that's exactly what I needed.
  2. I have trouble understanding how to correctly animate my game using the ticker. I created a black bar which I would like to change it's size when a method is called, this is how the code: class HitBar extends PIXI.Sprite { private bar = new PIXI.Sprite(PIXI.Texture.WHITE); private cellWidth: number; private radius: number; constructor(cellWidth: number, cellHeight: number) { super(); PIXI.Ticker.shared.add(this.changeSize()); this.cellWidth = cellWidth; this.bar.tint = 0x000000; this.bar.height = cellHeight; this.addChild(t
  • Create New...