Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Azrael on October 27, 2009, 11:23:53 AM

Title: Scene.ScrollTo() not working
Post by: Azrael on October 27, 2009, 11:23:53 AM
I have a scene with a resolution of 1500x768. The actor is at the right of the scene and i want the scene to scroll to a point on the left.
The problem is that the scene don't scroll. Scene.SkipTo(); work but ScrollTo(); no (i tried with X,Y and with an entity).

As written in the docs Scene.AutoScroll is set to true.
The script is something like that:

Code: [Select]
Game.Interactive = false;
Scene.AutoScroll = true;
Scene.ScrollTo(164, 511);
Game.Interactive = true;

The game become non interactive and wait forever for the scene scrolling :(
Title: Re: Scene.ScrollTo() not working
Post by: Mnemonic on October 27, 2009, 11:41:25 AM
You will want to set Scene.MainObject to null, otherwise the scene will keep trying to focus on it.
Title: Re: Scene.ScrollTo() not working
Post by: Azrael on October 27, 2009, 01:30:16 PM
Tnx Mnemonic, setting the Game.MainObject to null it works :)