Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Guardian on April 19, 2006, 08:47:32 AM

Title: Scrolling speed bug
Post by: Guardian on April 19, 2006, 08:47:32 AM
Why scrolling speed is different when I run game in window and fullscreen(scene is 3 screen long)?
In window actor run in center and background, whenever in fullscreen mode - actor have time to came up to window side. Is it a bug?
Title: Re: Scrolling speed bug
Post by: Mnemonic on April 19, 2006, 10:41:13 AM
To quote myself from the other thread:

As for the scrolling speed, you can adjust it using the Scene properties (ScrollSpeedX, ScrollSpeedY, ScrollPixelsX, ScrollPixelsY). The default values are probably set too low, so the scrolling sometimes doesn't catch up when the framerate is low.
Title: Re: Scrolling speed bug
Post by: Guardian on April 19, 2006, 11:30:46 AM
Yes, of couse. I know it.

But still is it ok when one scene scroll different in different window modes?
Actor moving is looks like similar in each modes (or may be a little). But background is not.
I can guess that engine scrolls background layers improperly, this moving is not based on time delta.
Title: Re: Scrolling speed bug
Post by: Mnemonic on April 19, 2006, 05:00:11 PM
As I said, the default values are a little unfortunate. The scene is set to scroll by one pixel every 10 milliseconds, which means the game would have to run at 100FPS (1000/10) to get the desired effect. Settings like this should overcome the issue:
Scene.ScrollSpeedX = 20;
Scene.ScrollPixelsX = 2;
Title: Re: Scrolling speed bug
Post by: Guardian on April 20, 2006, 06:21:01 AM
Ok, again, I've change this values. :) And again - there is different speed in a window mode and in a fullscreen mode. This is not right thing. For example how can I make scene which looks equal in all modes(scene must be 3 screen long at least)?
Title: Re: Scrolling speed bug
Post by: Mnemonic on April 20, 2006, 07:43:02 AM
a) increase the values to find the ones that suit you
b) if it's not enough for you, you can't
Title: Re: Scrolling speed bug
Post by: Guardian on April 20, 2006, 07:48:07 AM
It seems I can't.  :(
Thanks.