Ianmh Posted September 17, 2017 Share Posted September 17, 2017 I've loaded a large sprite sheet of trees and I want to iterate through them all so I can grab random trees. Up until now I've always just used them by name, so I'm not sure how to do this. loader.add('trees', 'trees.json') .on('progress', this.loadProgress) .load(this.done); Quote Link to comment Share on other sites More sharing options...
Ianmh Posted September 17, 2017 Author Share Posted September 17, 2017 Found them. PIXI.loader.resources.trees.data.frames ivan.popelyshev and dmko 2 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.