Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

How to stop colliders from moving with camera?


facecjf
 Share

Recommended Posts

Noob Question concerning colliders.

  • I’m setting the bg position with an offset to the pointer.y value.
  • I’m using this.camera.main.startFollow(bg, true, 0.05, 0.05) to handle camera scrolling based on the bg position.

I have a sprite set not to scroll - and it’s collider still scrolls.
isHappening

This is what I would like to happen :
shouldHappen

Are colliders dependent on the camera?
If so, how do I fix the collider to the object to prevent it from scrolling with the camera?

Thanks in advance.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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