Jump to content

Brent Cromley

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. I was intrigued to try using the bitmap fonts with bitmap text. I saw this article by Matt Karl that gave some basic examples. There was one example in there which mimicked what I needed to achieve, but it doesn't appear to work with the latest Pixi version. In fact, the JS fiddle he points to in the article also doesn't work. https://jsfiddle.net/bigtimebuddy/0xswqabj/ Any suggestions on how to get bitmap fonts working with bitmap text, or any pointers to examples of it working? Thanks, Brent
  2. I am playing with hit areas and trying to constrain the amount of surface area that registers a mouse event. I have it working well on Graphics, but it does not seem to work similarly in Sprites. Here is my code showing it working on a graphic, but failing on a sprite. const app = new PIXI.Application({ width: 800, height: 600, backgroundColor: 0x1099bb }); document.body.appendChild(app.view); // Setup a test graphic as a rectangle const testRect = new PIXI.Graphics(); testRect.beginFill(0x00FF00); testRect.drawRect(0, 0, 100, 100); testRect.endFill(); test
×
×
  • Create New...