PixiJS Part 8: Animated Spritesheets
[ad_1]
So i just want to put together this quick video um to show you how to create sprite sheets and use animated sprite sheets within pixie js so here we go before we get started i want to share some updates for pixie version 6 which is the latest version So we're going to go through in the loader example and just change how we're adding events to the loader specifically removing the on callback we're just accessing these properties on the loader instead so it's on progress on load on error and then we just add it to those properties Um and we only add the callback so we have to remove these strings um identifying which event we're listening to and then it should just work like normal so i'm just going to go through and remove the timeout where we're changing the texture and the rotation here So that we have a static sprite to work with so for a spreadsheet first we need a sequence of images because every sprite sheet is made of sequence of images...