neonwarge04 Posted September 15, 2015 Share Posted September 15, 2015 Hi, I have this following code: function SwordsMan(stage){ this.mStage = stage; this.mAnimFrames = [ PIXI.Texture.fromFrame("0.png") , PIXI.Texture.fromFrame("1.png") , PIXI.Texture.fromFrame("2.png") , PIXI.Texture.fromFrame("3.png") , PIXI.Texture.fromFrame("4.png") , PIXI.Texture.fromFrame("5.png") ]; this.mMovieClip = new PIXI.extras.MovieClip(this.mAnimFrames); this.mMovieClip.animationSpeed = 1.0; this.mMovieClip.play(); this.mStage.addChild(this.mMoveClip);}SwordsMan.prototype ={ constructor : SwordsMan , update : function(elapsed) { }}I am following this tutorial to try out PIXI animation: http://pixijs.github.io/examples/index.html?s=basics&f=spritesheet.js&title=SpriteSheet%20Animation|Unfortunately, upon trying this out I getting this following error:Uncaught TypeError: Cannot read property 'parent' of undefinedThis occurs at pixi.js 6774. How can I fix this?Thank you! Quote Link to comment Share on other sites More sharing options...
neonwarge04 Posted September 15, 2015 Author Share Posted September 15, 2015 Damn, I am such a careless typer. I typed this.mMovieClip. To save myself from this embarrassment, I knew some of you guys missed it too! I need to rest. Thank you! 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.