this.AutoScroll = true;
while(true)
{
this.ScrollTo(-200,-200);
Sleep(100);
}
Scene.AutoScroll=true;
Scene.ScrollTo(1000, 600);
Scene.AutoScroll=true;
var e_obj=Scene.GetNode ("table");
Scene.ScrollTo (e_obj);
try so:I tried this. the scene still scrolls to 0,53. Here is me script:Code: [Select]Scene.AutoScroll=true;
Scene.ScrollTo(1000, 600);
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
Game.LOG("**Intro Scene**");
//actor.Reset();
actor.Active=false;
///////////////////////////////////////////////////////////////////////////////////
// Scene.ScrollTo() stops the script.
Game.LOG("AutoScroll is turned on");
Scene.AutoScroll=true;
Game.LOG("Scene Scrolling to 1000,800");
Scene.ScrollTo(1000,800);
//////////////////////////////////////////////////////////////////////////////////
// win.GoExclusive() stops the script as well.
Game.LOG("Loading Intro Window");
global win = Game.LoadWindow("scenes\Intro\Wnd\intro_menu.window");
win.Center();
win.GoExclusive();
Code: [Select]Game.MainObject = null;
///////////////////////////////////////////////////////////////////////////////////
// Scroll Scene
while(true) {
Scene.ScrollTo(1000,800);
if(Scene.OffsetX>=200) {
Scene.OffsetX=0;
}
if(Scene.OffsetY>=200) {
Scene.OffsetY=0;
}
Sleep(100);
}
///////////////////////////////////////////////////////////////////////////////////
Is there a way to continue executing the script while still scrolling?I was about to say use ScrollToAsync() instead, but I found there's no such method, shame on me.