Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

Pixi Sprite not drawing

$
0
0

I'm having an issue where the first time I try to draw a sprite, it works fine.  I call the loader.load and within the 'complete' callback I load the sprite and render the stage.  All is good.  I then load a second page and it draws the canvas (black background so I see it) but does not render the sprite.  I can see the textures loaded if I console.log them, I can create the sprite with new Sprite(texture) and the sprite object looks the same in console.log.  But only the stage renders!  Black background, No Sprite.  

Here is a stackoverflow question with the code I am using: http://stackoverflow.com/questions/41865191/pixijs-add-sprite-works-first-time-not-second

Please help, thanks. 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>