Hey guys, I have a problem which I'll try to explain as good as possible.
I'm creating a 2D side scroll helicopter rescue game. The helicopter always stays in the middle of the screen. The only problem is I don't always want it to! When I reach either side of the map I want the scrolling to stop and the helicopter to fly either left or right, depending on which side you are, and no longer staying at the middle.
Now I have several objects in the game, like houses, trees, water etc. and all those objects move when the helicopter is moving to simulate as if you are actually flying, however the helicopter doesn't move, everything else moves.
The problem is how to check if you're at the far left side or the far right side, making all other objects stop and stuff are not the problem but simply how to check if you're at the end and passing it to all actors. Since the helicopter always stays in the middle it's really hard to do.
Hope it's clear enough for you!

