Jump to content

Particles Scroll Factor


Fredrik
 Share

Recommended Posts

I am trying to get a particle emitter work in the middle of a screen where the camera is moving around on the map (like a win animation thingy), but I can't get it working. I can get the particles to work but they are stuck to specific coordinates and not centered in the screen/camera.

I can't set scrollFactor on particles and if I add it to a container with scrollFactor(0) then I get this error:

Uncaught TypeError: child.setScrollFactor is not a function
    at ContainerWebGLRenderer [as renderWebGL] (ContainerWebGLRenderer.js:59)
    at WebGLRenderer.render (WebGLRenderer.js:1563)
    at CameraManager.render (CameraManager.js:409)
    at Systems.render (Systems.js:298)
    at SceneManager.render (SceneManager.js:587)
    at Game.step (Game.js:450)
    at TimeStep.step (TimeStep.js:553)
    at step (RequestAnimationFrame.js:102)

Anyone has any ideas on how to achieve this?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...