Hello
I making now game in Mega Man Style but i got problem with Scrolling in zones
for example frist walk right and left but in wall next is a scrolling up and down but later now again scrolling left and right but with out previous frame partframe part
Image Example:
Firstly you should store the scroll mode in a value somewhere.
0 => follow character left right
1 => follow character up down
2 => Lock scrolling
ect.
Then to change modes have invisible objects that mark the boundaries and activate them when they are touched by the player or whatever else you want to trigger it.
Originally Posted by -UrbanMonk- Then to change modes have invisible objects that mark the boundaries and activate them when they are touched by the player or whatever else you want to trigger it.
..or better yet, replace the invisible objects with certain X,Y values. I don't remember how Mega Man scrolling was.
Divide your scrolling zones, like you have done in your picture. And assign each scrolling zone a value, that value controls the scrolling mode (horizontal/vertical or both).
I am not all that familiar with Mega Man scrolling, but Donkey Kong Country also has scrolling and restricted scrolling. So won't see a banana secret or something else unless you're really close to it.
If that is what you mean, then I can't help yet, as I am still tinkering about that scrolling mode. Although it would basically work the same way.