Hello, been a long time since i been here........... I am embarking on a brand new point and click game which involves the use of a srolling frame. I need to be able to control the scroll using the mouse. The problem i am having is getting a smooth scroll when the pointer is close to the edge of the screen. I also need to get it so that when the visible window reaches the end of the frame it wraps itself round the frame thus creating a sort of 360° view. is this possible in MMF2??
For the first part i suggest using an active object that scrolling in centered at. Then when the mouse goes to the left or right of the screen, the active object moves slowly left or right.
and getting it to wrap? um if you draw part of the left side of the frames background after the end of the right edge and part of the right background on the end of the left, you should be able to get the active object to quickly move from one edge to the other so it look like it's in the same place, see what i mean?
Yes, the easiest way to do this, is to actually create perfect illusions on both sides of your screen. Say your window is 640 x 480; you would need a 320 pixel "fake area" on either side of the screen. So whenever your camera object reaches 320 pixels from the edge of the left or right screen, you set it to 320 pixels from the edge of the other side. Hence theres a small area on each side of the frame that you can never actually reach; it only serves as an optical illusion to give the scrolling effect. So you'd just need to make it perfectly lined up with what you'll see on the other side.
For example, in this level, whenever the player reaches one side of the room, hes teleported back to the other side:
The areas on either side cannot actually be reached, but make the scrolling look smooth