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: Moving the actor's speech captions  (Read 5681 times)

0 Members and 1 Guest are viewing this topic.

BEHEMOTH

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • I am not a llama, I am a free man!
    • View Profile
Moving the actor's speech captions
« on: September 12, 2003, 11:08:18 PM »

I am using a window to show a close up of an item when you "look-at" it in the inventory.
How can I displace the actor's speech caption (to the bottom of the screen, say) whilst the window is displayed? I thought it would just be a matter of changing some x/y variables (like actor.speechx, for example) but I can't figure it out. Any help?

WME ABSOLUTELY ROCKS! ;D
« Last Edit: September 12, 2003, 11:08:50 PM by BEHEMOTH »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Moving the actor's speech captions
« Reply #1 on: September 13, 2003, 09:08:55 AM »

Hi, you can use a little trick to achieve that. Create a simple invisible entity (i.e. an entity with transparent graphics), then position the entity to the bottom center of the screen. Then, instead of calling actor.Talk in the script, call the Talk method of the invisible entity and the caption will appear at the bottom of the screen (or anywhere you place that dummy entity).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

BEHEMOTH

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • I am not a llama, I am a free man!
    • View Profile
Re:Moving the actor's speech captions
« Reply #2 on: September 13, 2003, 07:36:51 PM »

Cheers!
I was actually using that method already ( ::))as a temporary measure but thought there might be a more efficient way of doing it. Maybe you could add that to the wishlist?
In the meantime, this way works fine. Thanks again.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Moving the actor's speech captions
« Reply #3 on: September 13, 2003, 09:38:15 PM »

Sorry, I didn't mean to underestimate you ;)
Mmmm, ok, it's gonna be easy to add.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

creatorbri

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 61
  • I'm a llama!
    • View Profile
Re:Moving the actor's speech captions
« Reply #4 on: September 14, 2003, 04:15:21 PM »

Personally, I think the best system is one that would allow as easily for static-location text (i.e. if I wanted my captions to stay at the bottom of the screen) as for adjusting the position of actor-relative text (i.e. adjusting the height between the character's head and his/her speech captions).

For instance, maybe you could set some properties as follows... note that this is just a loose example, I can't remember how you would actually get the actor's position:
Code: [Select]
actor.SpeechX = actor.X;
actor.SpeechY = actor.Y - 100;
or
Code: [Select]
actor.SpeechX = 400;
actor.SpeechY = 580;
« Last Edit: September 14, 2003, 04:16:32 PM by irbrian »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Moving the actor's speech captions
« Reply #5 on: September 14, 2003, 09:50:04 PM »

I added three attributes, Game.SubtitlesPosRelative, Game.SubtitlesPosX and Game.SubtitlesPosY. When the SubtitlesPosRelative is set to false, the X and Y attributes determine the absolute subtitle position on screen. I hope it will be enough.

The new WME build will be released later this week.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

BEHEMOTH

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • I am not a llama, I am a free man!
    • View Profile
Re:Moving the actor's speech captions
« Reply #6 on: September 22, 2003, 01:43:53 AM »

Wow. Quick work!
Thanks Mnemonic!
Logged
 

Page created in 0.056 seconds with 24 queries.