Hi,
Hmm, I think that should be possible if you prepare it like:
- ParentNode
- PlayerNode
- CameraNode
Then you need to move ParentNode
automatically through the stage map and user input should move PlayerNode
locally inside ParentNode
. Of course you need to limit player local position to assure it will stay in camera.
Looking at Gradius I think you could also make player and camera stay in place and just add moving background and enemies/other objects move with constant X speed to the left, but then you need to spawn enemies/object from code probably or at least activate AI behaviours when enemy/object is entering screen.