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: ScrollTo not working  (Read 3433 times)

0 Members and 1 Guest are viewing this topic.

Hiro

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
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 Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
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. ::wave

Hiro

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
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 Offline
  • Gender: Male
  • Posts: 7
  • NomNomNom
    • View Profile
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
 

Page created in 0.029 seconds with 24 queries.