Parallax scrolling with orthographic camera – method advice please
I’d like to use an orthographic camera and simulate parallax scrolling and here is the solution I came up with. I’d like feedback please.
It seems to me the only way to go about this to move the background elements(actors) as the player moves.
Only move objects while the camera is in view, I would assume this will increase performance.
Change movement speed based on z-order (obvious one).
Perhaps store original location to reset actors when out of camera view if I’m experiencing issues where the actors become out of alignment.
Now here is where I might have trouble …
How should I check if an actor is in view of the camera?
Which blueprint would be best to place the checks in? Player, level, camera?
If I make a separate blueprint for the camera how would I reference it through the player blueprint(if going that route)?
Open to suggestions, thank you.