MODULE: Smooth Scrolling & Parallax v1.7.1

Started by Ali, Fri 07/12/2007 21:14:09

Previous topic - Next topic

Icey

Quote from: Ali on Tue 07/09/2010 01:42:46
If you mean you want the camera to stop moving the instant the player stops moving, then I'm afraid that;s not possible. As it is the player stops, and then the camera takes a short while to come to a stop smoothly.

To make the camera and player stop simultaneously the module would have to anticipate when the player was going to stop and start to slow down. I don't know how I'd script that. Also I think the effect would be unnatural, in film a camera operator rarely stops panning the instant an actor stops moving.
I see,but what i mean i want to have it how it is with this add-on, i want it to be were cego is walking & the camera follows like the module then it keeps follow ego so that he does not go off screen or so he doesn't have to get that close to the wall of the window & so it does not pause even time he get to the spot you click on.

basically when ever i click on an area he move to it and the camera follows then while he is walking i may need hime to go up and not left, the camera the pauses for a sec then starts following again

Ali

I can't really understand your writing, is English your first language?

Is the problem is that the camera stops moving when the character is turning? In the demo, Roger will walk down the ladder then turn and cross the screen without the camera stopping completely. Perhaps you could try varying walking speed and scrolling speed so that the camera does not reach the player until he starts moving again. To alter the scrolling speed change the values of targetscrollspeedx and targetscrollspeedy.


Icey


mr_cool

Hi

If I want the screen to scroll down as soon as i reach 99 pixels from the upper edge -  where in the script do i change this?


Ali

On the off chance you come back to read this month-late response:

I'm afraid the scrolling threshold is set as a percentage of the screen height rather than at a certain pixel.

EDIT This is no longer true. See below:

Ali

A PM from hedgefield revealed a bug in the Lucas Arts style scrolling. I've updated module and demo on the first post.

The biggest change is int EdgeX and int EdgeY which are the distance from the edge of the screen which the player must be before scrolling happens. Also, the module now scrolls based on the head of a character when moving up, and their feet when moving down.

If you're using the module please update! (And let me know how it's working!)

hedgefield

A-MAZING. Works perfectly now. Thanks for the speedy fix! :D

Blobby 101

Maybe I'm just thick but I've never used modules before :P How do I install/use this in my project?

-cheers

DOWNLOAD

Dualnames

Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Blobby 101

ah, I see. Simpler than I thought, thanks!

Edit: NVM, i wasn't thinking properly xD fixed it

DOWNLOAD

bbalint85

Hi!
Is there a way to disable the slowdown in scrolling? I want to use this nice module, but only the smooth scrolling part, so I want it to be as the default scrolling, just without the choppiness.
I found a commented line:
if (Centring == false && ScrollSpeedX < 0.5 && ScrollSpeedX > -0.5) ScrollSpeedX = 0.0;
       
This helps a bit, and tinkering with taargetspeed and slowdownrange, I also have results, but there's still some backgroundmovement, after the player stops.
Has anyone else experimented with this? Do you have any "best configuration" results?

Timeless Journey

Ali

I'm not sure I understand what you want. How could the movement be smooth without easing in and out?

Incidentally that commented line was designed to get rid of double pixel jumps at the end of a slowdown, but isn't relevant in 3.2 because it moves the screen by single pixels.

Matti

I haven't followed this thread recently.. is this still impossible or are you planning to implement it:

Quote from: Matti on Fri 13/11/2009 18:51:39
to allow the viewport manipulation in parallax-rooms, so that it isn't depending on the player's coordinates?

It would be quite cool for a room in my current game.

bbalint85

Quote from: Ali on Fri 13/05/2011 14:32:58
I'm not sure I understand what you want. How could the movement be smooth without easing in and out?

Incidentally that commented line was designed to get rid of double pixel jumps at the end of a slowdown, but isn't relevant in 3.2 because it moves the screen by single pixels.

Hmm, you must be right there. Anyway I wanted to minimize the background movement after the player stops.
Thanks for the reply!

Timeless Journey

Ali

To do that you can lower the slowdownrange for X and Y. Be sure to test it carefully and choose the right targetscrollspeed, because if the balance is off it will wobble to a stop.

qb

Hi,

any chance of reuploading the module? The links don't work, propably due to inactivity. I can also help with mirroring them if needed.

Ali

I've re-uploaded the module and added mirrors thanks to qb. See first post!

LostTrainDude

"We do not stop playing because we grow old, we grow old because we stop playing."

Joe

Hey! I really like the smooth scrolling. I'm using it with my game but I'd really like to delete the paralax part. I know I can call the SmoothScroll_PxOn(); function... but I just don't want to have unnecessary code in my game.

Would someone be so kind to make a only-smooth-scrolling module from this one?

Thanks.

Joe
Copinstar © Oficial Site

Ali

I'm not able to do it right now, but I'll try to trim that part out when I get a chance. You are right that the bulk of the module is parallax.

UPDATE:
A stripped down version of only-scrolly is here!
http://www.gamefront.com/files/21076580/Smooth+Scrolling+Basic.scm

SMF spam blocked by CleanTalk