v[20q9nv47p2398v4 Posted November 28, 2019 Share Posted November 28, 2019 const font = new PIXI.Text('TJXY'); font.anchor.set(0.5); font.position.set(renderer.screen.width / 2, renderer.screen.height / 2); font.interactive = true; font.buttonMode = true; font.on('pointerdown', function () { font.scale.y *= 1.25; }); stage.addChild(font); that didn't work. but the v5 doc suggested that it's possible, no error show in console. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 28, 2019 Share Posted November 28, 2019 It works. https://www.pixiplayground.com/#/edit/Jd0tziMk6kMptpk5cBoAU Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.