Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: DocBass on April 17, 2008, 07:46:41 AM
-
I have a vertically scrolling screen that I am trying to start at the bottom (where the actor starts) so that as you walk up the screen scrolls up, naturally. However using Scene.SkipTo(actor.X, actor.Y) does not start the scene at the bottom, nor does hard coding the numbers seem to work. This works correctly on a horizontally scrolling screen, but it seems that it does not work for the vertical variety. Am I doing something wrong?
-
Try using: Scene.SkipTo(actor);
-
Same result.
-
I'm testing it with WME Demo, and Scene.SkipTo(actor); seems to correctly focus the "camera" both vertically and horizontally... What could be different about your scene compared to the one in WME Demo?
-
Well I have three layers..a background layer, then main, then a foreground. That's the only thing I can think of.
-
Well, so does the scene in demo..
-
Oh, my mistake then. Maybe I could send you the scene and you could see if it works for you? Or I could try something else?
-
Maybe I could send you the scene and you could see if it works for you?
Yes, that's usually the most effective way :)
-
Cool, I sent you an email.
-
For the record, it was caused by another script changing actor's position.