April 19, 2024, 04:49:57 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Latest WME version:
WME 1.9.1
(January 1st, 2010) -
download
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
ScrollTo not working
« previous
next »
Pages: [
1
]
Print
Author
Topic: ScrollTo not working (Read 3433 times)
0 Members and 1 Guest are viewing this topic.
Hiro
Lurker
Karma: 0
Offline
Posts: 4
ScrollTo not working
«
on:
July 07, 2011, 03:41:54 PM »
I want to make a sequence
moving the camera from the scene at various points
but when I use the commands
ScrollTo
or
ScrollToAsync
nothing happens
How can I fix
Scene.AutoScroll=false;
Scene.SkipTo(400, 520);
Sleep(1000);
Scene.ScrollSpeedY=1;
Scene.ScrollPixelsY=1;
Sleep(1000);
Scene.ScrollTo(10,999);
«
Last Edit: July 07, 2011, 03:43:37 PM by Hiro
»
Logged
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
Re: ScrollTo not working
«
Reply #1 on:
July 07, 2011, 04:13:36 PM »
You must not set AutoScroll to false, it must be true. Instead set
Game.MainObject = null;
That way the scene will stop automatically focusing on the actor.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum.
Hiro
Lurker
Karma: 0
Offline
Posts: 4
Re: ScrollTo not working
«
Reply #2 on:
July 08, 2011, 01:51:53 AM »
now works
but the command does not work properly
no matter what value you put in the X and Y axes
the camera is always going up
until you reach the end of the scene
Game.MainObject = null;
Scene.AutoScroll = true;
Scene.SkipTo (0, 999);
Sleep (1000);
Scene.ScrollTo (0.500);
Logged
Deydren
never sleeping
Lurker
Karma: 0
Offline
Gender:
Posts: 7
NomNomNom
Re: ScrollTo not working
«
Reply #3 on:
July 08, 2011, 04:38:17 AM »
Quote
Scene.ScrollTo (0.500);
Well, do you mean "(0.500)" or "(0, 500)"... Maybe that's the whole problem?
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
ScrollTo not working