Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: vertically scrolling screen and Scene.SkipTo()  (Read 4917 times)

0 Members and 1 Guest are viewing this topic.

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
vertically scrolling screen and Scene.SkipTo()
« 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?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #1 on: April 17, 2008, 02:47:52 PM »

Try using: Scene.SkipTo(actor);
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #2 on: April 18, 2008, 03:22:17 AM »

Same result.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #3 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?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #4 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.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #5 on: April 21, 2008, 03:15:24 PM »

Well, so does the scene in demo..
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #6 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?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #7 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 :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #8 on: April 24, 2008, 09:35:27 PM »

Cool, I sent you an email.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: vertically scrolling screen and Scene.SkipTo()
« Reply #9 on: April 26, 2008, 11:52:45 AM »

For the record, it was caused by another script changing actor's position.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.039 seconds with 21 queries.