playMaker

Author Topic: clouds and birds movement problem  (Read 1115 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
clouds and birds movement problem
« on: May 16, 2023, 11:22:47 AM »
Hello,

I have clouds and birds that move randomly (the clouds are only to the right while the birds are mostly horizontal with a little bit of vertical sprinkled in). I want them to stay relatively close to the camera. I know I can have colliders set as triggers for boundaries, but when I move too far away, the objects don't follow. I should also mention that the clouds when they reach the one side automatically move to the other side. I don't think I need paralaxing because they are moving objects regardless of player movement, but maybe I need a form of it. Any help is greatly appreciated. Thanks!

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: clouds and birds movement problem
« Reply #1 on: May 16, 2023, 11:23:57 AM »
I also know I could make clouds and birds cover the whole level, but I don't think it would be a very good way of solving it.

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: clouds and birds movement problem
« Reply #2 on: May 16, 2023, 12:46:41 PM »
Never Mind. Figured it out somehow. Still not 100% sure what I did...

Something with parenting it to the camera if anyone else is wondering. :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: clouds and birds movement problem
« Reply #3 on: May 16, 2023, 12:51:42 PM »
If it works it works :D :D :D

misterjuly

  • Sr. Member
  • ****
  • Posts: 357
Re: clouds and birds movement problem
« Reply #4 on: May 16, 2023, 10:30:12 PM »
Well, now that I'm looking at it closer, it works for normal player movement. However, I have cutscenes where the camera moves to a certain object to show something. The clouds and birds don't look right there because the camera moves too quickly and it follows them. How do I make it look less weird when moving the camera quickly. Thanks!