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: Direct control and Scene scrolling  (Read 4231 times)

0 Members and 1 Guest are viewing this topic.

SOLO

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • View Profile
Direct control and Scene scrolling
« on: August 21, 2012, 12:42:09 PM »

Hi,
    I have the main actor being controlled by a direct control script and he walks around very well. The problem comes when he walks off the screen it takes a while for the scene scrolling to catch up.

I have tried different methods to speed up the scene scrolling but this either makes the actor sprite shake and look horrible or it makes the scene scroll slower.

How can I get the scene scrolling to be as fluid as the direct control animation?

Many thanks
Logged
Best Regards
SOLO

dongo

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Direct control and Scene scrolling
« Reply #1 on: August 21, 2012, 01:12:26 PM »

I can think of something, though not much about  wintermute but the method scene.SkipTo (Object)
  when you press right on the keyboard should the program call  the method that makes the character move, well you can call others methods, then call too the method SkipTo(Object) to set the position of the scroll on the character, if that does not work, and neither are a lot of scripting yet.
I hope that helps.
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Direct control and Scene scrolling
« Reply #2 on: August 21, 2012, 01:50:20 PM »

Hey there!

How do you scroll? I'd suggest the following for your scrolling, we do the same in our Project.



As you can see on the screenshot, we are always using regions to trigger scrolling. In his case, they are simply two regions from top to bottom ( the two light-blue ones). The LEFT region makes the screen scrolling to the left-end, and the RIGHT region makes the region scroll to the right, simply by using the following Script:

on "ActorEntry" {
   Scene.ScrollToAsync(0,0);
}

Thats for Scrolling to left for example. As for the Settings, we use the following in scripts\scene.script :

this.ScrollSpeedX = 10;
this.ScrollPixelsX = 4;

It gives a quite fast scrolling. You can make it faster by reducing the speedX setting, or by increasing the Pixels.

Maybe this is a solution for your problem.
Logged

bokkers

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Direct control and Scene scrolling
« Reply #3 on: November 10, 2012, 09:03:19 PM »

Thanks for these advices on handling the scrolling speed! Answers exactly what I have been asking myself lately.
Cheers!
Logged
 

Page created in 0.027 seconds with 24 queries.