dazzafact Posted March 12, 2022 Share Posted March 12, 2022 Hello, is it possible to add another Animation to Pixi? Lets say, i have already another finished Canvas animation. Maybe like: addChild(canvas_animation) Thank you Quote Link to comment Share on other sites More sharing options...
Exca Posted March 14, 2022 Share Posted March 14, 2022 Yeah, you can create a base texture with canvas and then render a sprite that has that as a texture. const canvas = document.getElementById('my-canvas'); const canvasBaseTexture = new PIXI.BaseTexture(canvas); ccnst canvasTexture = new PIXI.Texture(canvasBaseTexture); const sprite = new PIXI.Sprite(canvasTexture); stage.addChild(sprite); 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.