Jump to content

htmlgivesmedepression

Members
  • Content Count

    2
  • Joined

  • Last visited

About htmlgivesmedepression

  • Rank
    Newbie
  1. How would I go about checking if it loads? I don't use PIXI.Loader, the code is all there is, PIXI.AnimatedSprite.fromFrames loads it all for me. Would it be a better approach to use PIXI.Loader to load the frames individually?
  2. Hello, I am experiencing a weird glitch in which spritesheets don't load properly sometimes (every 5th time?) and it shows up as just blue empty background. Here is my code: var frames = [] for (let i = 0; i < 48; i++) { frames.push("spritesheets/frame/" + (i+1) + ".png") } myApp.background = new PIXI.AnimatedSprite.fromFrames(frames); myApp.background.width = Constants.WIDTH; myApp.background.height = Constants.HEIGHT; myApp.background.x = myApp.renderer.renderer.width / 2 - Constants.WIDTH / 2; myApp.background.y = myApp.renderer.renderer.height / 2 - Constants.HEIGHT /
×
×
  • Create New...