Hello,
I have been designing a sort of continuous side scrolling game for a class project. In a nutshell the player must avoid oncoming obstacles by jumping over them. As of currently i have implemented the player which can move left, right, jump, and can stand on a ground class. I also made the background scroll continuously to give the illusion that the player is moving. However, I have run into a problem with the ground class. I would like to make the ground class scroll just like the background but with gaps in between the ground for the player to fall into. Unfortunately, I do not know how to make the ground scroll. Do I implement the ground class with my background scroll world or do I create an entirely new subclass?
Thank You