Jump to content

Particles Scroll Factor


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

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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