I would like for my game to be more leveled. Right now the game is centered with the player using the scrollto plugin. I would like to fill the bottom of the screen so it shows my whole background and no black space at the bottom.
Essentially I would like for the player to scroll at the bottom of the screen. Any help would be great. Thanks
You have a couple choices. First, you could make your level along the bottom of your layout and disable unbound scrolling so it can't exit. You could also have a small, invisible object that you set to follow the player (maybe at player.x, player.y+180) to make an offset and use scroll to to THAT object instead of the player.
Really, I'd use both and then get fancy and use lerp in how you set your invisible object's position to make it smooth.
Develop games in your browser. Powerful, performant & highly capable.
Great Information. Thanks C-7