d13 Posted June 9, 2014 Share Posted June 9, 2014 Hello! This bit of code is giving me "undefined is not a function" in Pixi 1.5.3 dev branch var frames = ["0.png", "1.png", "2.png"]; var sprite = PIXI.MovieClip.fromFrames(frames);Am I doing something wrong? I'm getting the same error with PIXI.MovieClip.fromImages. Quote Link to comment Share on other sites More sharing options...
rroylance Posted June 9, 2014 Share Posted June 9, 2014 You're not doing anything wrong, it's a mistake in PIXI. It is currently fixed in the dev branch (the fix was committed on May 21st, https://github.com/GoodBoyDigital/pixi.js/issues/750). Until 1.5.4 is released you can just use:var frames = ["0.png", "1.png", "2.png"];var sprite = PIXI.MovieClip.prototype.fromFrames(frames);or, if you're working from the source and building PIXI yourself, just change the PIXI.MovieClip.prototype.fromFrames and PIXI.MovieClip.prototype.fromImages declarations (in MovieClip.js) to PIXI.MovieClip.fromFrames and PIXI.MovieClip.fromImages d13 1 Quote Link to comment Share on other sites More sharing options...
d13 Posted June 9, 2014 Author Share Posted June 9, 2014 @UncleAcid, Thank you so much for your reply and detailed solution! 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.