SmallSir Posted April 1, 2019 Share Posted April 1, 2019 I want to implement a countdown function, such as a 15 second countdown, but I don't know how to use PixiJS to achieve Quote Link to comment Share on other sites More sharing options...
mattstyles Posted April 1, 2019 Share Posted April 1, 2019 It's actually a trickier question than many assume, due to asynchronicity. Ignore Pixi for now, Pixi is for rendering and that is usually the easy bit. What have you tried so far? Quote Link to comment Share on other sites More sharing options...
YMShen Posted May 31, 2019 Share Posted May 31, 2019 @SmallSir Take a look at my old little plugin for pixi.js: https://github.com/soimy/eventemitter3-timer (Sorry, a bit old and only tested in pixi v4.7, but should be a good starting point for you.) And also demo code at https://jsfiddle.net/ygs4zfLj/ 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.