Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: SkipTo...where?  (Read 3273 times)

0 Members and 1 Guest are viewing this topic.

fabiobasile

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 74
    • View Profile
    • my brand new website!!
SkipTo...where?
« on: August 17, 2006, 09:15:22 PM »

I'm a bit puzzled about this all "SkipTo" business:

My initial scene is a 2000x1399 map encased into an 800x600 res screen.

I want my initial scene to start immediately with the viewport focused on the main actor which is located approximately at pixel 450x300 in a 800x600 view, instead of opening the scene with the view slowly moving towards the actor.

I had a look in the docs and in the forum but i couldn't really find anything helpful. I thought the SkipTo method would work but apparently it doesn't. It just locks the scrolling and doesn't even allow me to move the player.

I placed
Code: [Select]
{
 scene.SkipTo(actor);
}
in the scene_init.script of my start up scene but i am not totally sure that's where i'm supposed to place it.
« Last Edit: August 17, 2006, 09:20:34 PM by fabiobasile »
Logged
What would i do with a million dollar? I'd give it to what's left of Black Isle/Interplay and tell them to finish the damn game!!!

fabiobasile

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 74
    • View Profile
    • my brand new website!!
Re: SkipTo...where?
« Reply #1 on: August 17, 2006, 11:55:40 PM »

nevermind i got it!

I just had to remove the brackets and place it within the actor's loading attribs... :-)
Logged
What would i do with a million dollar? I'd give it to what's left of Black Isle/Interplay and tell them to finish the damn game!!!

IvanErtlov

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: SkipTo...where?
« Reply #2 on: November 11, 2007, 08:10:26 PM »

Yes I know, I`m bumping a thread, which is not appreciated on many boards - however, opening a thread without using the search function is the greater evil, and hereby I can prove that we indeed used it.

We have done some screens and puzzles for our game now, but we ran into the same problem - during usability tests the testers also mentioned that it is pretty annoying when the actor comes into the scene on the outer right, but the scene scrolls slowly (or fast, I know how to adjust the scrollspeed) from the outer left to the desired position. Is there any way to define the starting viewport on a 3000+ Pixel Scene without scrolling there?

Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: SkipTo...where?
« Reply #3 on: November 12, 2007, 08:57:51 AM »

The answer is already in this thread, although a little cryptic. If you put:

Code: WME Script
  1. Scene.SkipTo(actor);
  2.  

to scene_init.script, the "camera" will skip to the actor immediately.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

IvanErtlov

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
    • View Profile
Re: SkipTo...where?
« Reply #4 on: November 12, 2007, 12:13:19 PM »

Thank you very much - I already had the code snippet included, but I was dumb enough to write ("Actor") instead of (actor)
Logged
 

Page created in 0.024 seconds with 24 queries.