Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: DocBass on April 17, 2008, 07:46:41 AM

Title: vertically scrolling screen and Scene.SkipTo()
Post 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?
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: Mnemonic on April 17, 2008, 02:47:52 PM
Try using: Scene.SkipTo(actor);
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: DocBass on April 18, 2008, 03:22:17 AM
Same result.
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: Mnemonic on April 20, 2008, 09:19:28 AM
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?
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: DocBass on April 20, 2008, 09:45:32 PM
Well I have three layers..a background layer, then main, then a foreground. That's the only thing I can think of.
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: Mnemonic on April 21, 2008, 03:15:24 PM
Well, so does the scene in demo..
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: DocBass on April 21, 2008, 06:24:04 PM
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?
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: Mnemonic on April 23, 2008, 07:59:48 AM
Maybe I could send you the scene and you could see if it works for you?
Yes, that's usually the most effective way :)
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: DocBass on April 24, 2008, 09:35:27 PM
Cool, I sent you an email.
Title: Re: vertically scrolling screen and Scene.SkipTo()
Post by: Mnemonic on April 26, 2008, 11:52:45 AM
For the record, it was caused by another script changing actor's position.