When the dimensions of the sport scene exceeds the dimensions of the display, when the protagonist strikes to the correct, the scene may even transfer to the correct.
Suppose a button is added within the decrease proper nook of the display. When the protagonist strikes to the correct, the button begins to maneuver to the left.
If you wish to make sure that this button is at all times within the decrease proper nook, what must you do?
You most likely shouldn’t be transferring the scene, however moderately a separate layer within the scene.
It can be extra like this hierarchy:
Scene
| - Menu Layer
| - Game Layer
When Game Layer strikes, it gained’t have an effect on Menu Layer.