I have a dirtbike game, and it has a parallax background, the background is a child of the main camera.
this is a 2d game btw
so basically, the parallax and bike controls are working. but the second i put a follow script to follow the bike, and run it, the background starts falling infinitely. This is probably because it’s trying to follow the bike which is falling down, how do i fix this. the bike never stops at the ground because the background is falling faster than the bike, so the bike never touches the ground. pls help, i attached my code