Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: iamlowlikeyou on Tue 11/01/2011 19:39:00

Title: Small jumps when room scrolling [SOLVED]
Post by: iamlowlikeyou on Tue 11/01/2011 19:39:00
I think I saw the solution for this here in the forum once, but I just CAN'T find it :D
As far as I recall it was quite simple - something like checking a box somewhere...

My problem is that when my room is scrolling it makes small jumps... That is the room is not scrolling smoothly.
My game is 320x240 and 32bit color, if that's got something to do with it.
Title: Re: Small jumps when room scrolling
Post by: Ryan Timothy B on Tue 11/01/2011 19:45:41
Nothing as easy as just checking a box somewhere because it isn't a feature within AGS. But there is always Ali's smooth scrolling module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=33142.0).
I believe all you have to do is import the script files into your game and you're pretty much set.
Title: Re: Small jumps when room scrolling
Post by: iamlowlikeyou on Tue 11/01/2011 20:54:05
Thanks for replying!
No, but I think I remember some option that can cause jumping, that I learned about, but now have forgotten. Anyway I'll take a look at that script :)
Title: Re: Small jumps when room scrolling
Post by: Ryan Timothy B on Tue 11/01/2011 21:10:10
The thing that you may be referring to is the tearing effect. Simply set System.VSync to true.
Although I don't notice a difference between this being on or off. It only works with DirectDraw and I believe only in fullscreen mode.

Other than that, AGS doesn't have any quick fix options to fix the jumping you see when the viewport is moving.
Title: Re: Small jumps when room scrolling
Post by: Baron on Wed 12/01/2011 02:10:34
This thread? (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=42128.0)
Title: Re: Small jumps when room scrolling
Post by: iamlowlikeyou on Wed 12/01/2011 10:30:09
I actually managed to find it myself now...
The thing I was thinking about is the MovementLinkedToAnimation function of the player character. Setting this to false made the scrolling smooth. Will this cause other problems I'm not yet aware of?
Title: Re: Small jumps when room scrolling
Post by: Baron on Thu 13/01/2011 02:11:24
Quote from: iamlowlikeyou on Wed 12/01/2011 10:30:09
The thing I was thinking about is the MovementLinkedToAnimation function of the player character. Setting this to false made the scrolling smooth. Will this cause other problems I'm not yet aware of?

Probably.  Most solutions to one problem have unintended consequences, in my experience.  But then, you'd just find another solution to the new problem when you encounter it and knock those consequences further down the line, etc.  ;)
Title: Re: Small jumps when room scrolling
Post by: iamlowlikeyou on Thu 13/01/2011 14:40:05
Hehe, you're right.
Well, so far it's working :D