The Daily Click ::. Forums ::. Klik Coding Help ::. Scrolling Frames only in zone's Area
 

Post Reply  Post Oekaki 
 

Posted By Message

radel999



Registered
  07/01/2012
Points
  314
10th September, 2012 at 10/09/2012 21:12:38 -

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:
Image

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
11th September, 2012 at 11/09/2012 01:59:11 -

There are many ways of doing this.

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.

 
n/a

hapsi



Registered
  13/11/2003
Points
  775
11th September, 2012 at 11/09/2012 18:30:53 -


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.

 
[Signature][/Signature]

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
16th September, 2012 at 16/09/2012 13:52:44 -

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.


 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click