The idea is to have a ship with the controls of up and down but with the illusion of the background scrolling left and right. I have tried parallax combined with the SCROLL TO behavior but this moves the camera too much. It is critical to see the whole layout at all times. The ship cannot be centered of screen, as it must remain to the one side of the layout.
My idea was to get a couple different background layers and have them set to move at appropriate ratios for parallax effect. Or maybe I could spawn a invisible sprite to be centered on and simulate it to scroll left/right with parallax when I need...
Is there another option I am missing here?
are you making a space ship or ship on the ocean? I am not sure what you mean by seeing the whole layout and needing parallax. (for parallax to work you have to have layers extend beyond what is on screen). Do you want the background to loop behind the ship?
I would make an invisible sprite called Camera - then you can limit its movement any way you want.
you could check out this thread from a couple months ago:
I posted a sample that uses a camera object to maximize the space in front of the space ship so you can see what is coming at you. If you download my file, find the Camera object and make it visible so you can see how it changes its position in relation to the ship.
Develop games in your browser. Powerful, performant & highly capable.
A space game of sorts. I was still deciding on some background effects(with scrolling infinite and parallax) and how much I was planning to move the ship. I need to learn how to make the "camera".
Perfect! these examples are just what I need!