Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Scrolling and Text Boxes  (Read 2469 times)

0 Members and 1 Guest are viewing this topic.

Diaf

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
Scrolling and Text Boxes
« on: May 26, 2009, 01:52:22 AM »

Hey all, so far we have overcome our other problems and they game is coming along very well (demo on show very soon, look foward to it please). One thing I am having trouble with is screen scrolling.

Our game is currently running at my monitors native res of 1680 x 1050 and there is a scene where the bg is huge and about twice as long as that. So obviously it has to scroll as you move about the room. The actor has a speed set so it looks natural when he moves but also fast enough that you don't go insane waiting for him to move from one side to the other. The only problem is that the screen is scrolling at about 1/3 of his speed. You make a move and you literally have to sit there and wait for a few seconds for the screen to catch up so you can move again.

Where abouts can I can I change the scrolling speed?

The second thing is that I don't want the characters sub titles to appear above their heads. I want the text to appear across the bottom of the screen in the same place for every char. To tell who is speaking I have made images of their heads that I want to appear to the left of the words. Like how it works in the latest Sam and Maxes.

Can someone point me into how to go about doing this.

Cheers in advance.
Logged

Net

  • Gripped Software Programmer
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 48
    • View Profile
    • Čurina
Re: Scrolling and Text Boxes
« Reply #1 on: May 26, 2009, 08:20:34 AM »

The first thing is done by ScrollSpeed and ScrollPixels properties i think :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Scrolling and Text Boxes
« Reply #2 on: May 26, 2009, 03:11:24 PM »

And the second is done with SubtitlesPosRelative, SubtitlesPosX, SubtitlesPosY, SubtitlesWidth properties (see the docs).
However, those only affect the subtitle position. If you want to further modify the output (such as adding the portrait), you'll want to override the Talk method. See this for some inspiration: http://forum.dead-code.org/index.php?topic=3033.0
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.022 seconds with 19 queries.