I am using a tiledLayer, my first design in the scrolling background is that the character is fixed at the center of the screen and when the user presses (hold) down, the screen moves down but the character stays at the center of the screen.
THE QUESTION:
i want my character roam around the screen (meaning he will no longer be at the center of the screen) and when he reaches some point (he is near the edge of the screen) the tiledLayer will move.
eg
|--------------------------------border-----------------------------|
|--------------------------------border-----------------------------|
|--------------------------------border-----------------------------|
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
| -border- | ---------- character can roam here ---------- |-border- |
|--------------------------------border-----------------------------|
|--------------------------------border-----------------------------|
|--------------------------------border-----------------------------|
this represents the screen of the mobile phone.
a part of the tiledLayer is shown here, and when the character reaches the “border” the tiledLayer will move. The character cannot cross that border (actually i think that border should be invincible or imaginary)
I hope I didn’t make myself look stupid here. I hope you can help me. THANKS IN ADVANCE FOR THOSE WHO WILL! ;D