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: Talk position  (Read 2316 times)

0 Members and 1 Guest are viewing this topic.

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Talk position
« on: July 13, 2009, 01:55:29 PM »

Hi, I use the actor. Talk() method and works fine, but I have a panel at the top on the screen that when actor is near the top and talk, the text is showed in front of panel. I would like that if the text will show between Y=0 and Y=20 position, it will display at Y=21 coordinates. Doing this the text will not block this panel.

Any idea to do something like this?

Thanks!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5681
    • View Profile
    • Dead:Code Site
Re: Talk position
« Reply #1 on: July 13, 2009, 02:11:58 PM »

If you need some fixed GUI and limit where the scene is painted, perhaps you should use scene viewport (you can set viewport in ProjectMan).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Re: Talk position
« Reply #2 on: July 13, 2009, 03:02:47 PM »

This solution doesn't work in my case. This panel is not always visible. In some intros and scenes this panel doesn't show. I need any way to do that the talk sentences will display at Y=21 when it would be display at Y<21 at default.

Any way to do this?

Thanks
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5681
    • View Profile
    • Dead:Code Site
Re: Talk position
« Reply #3 on: July 13, 2009, 03:59:12 PM »

Well you can override the subtitle position with the "Subtitles*" set of properties. So perhaps an overridden Talk method, that would check actor's position and change the subtitle position appropriately might do the trick.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Re: Talk position
« Reply #4 on: July 13, 2009, 04:57:12 PM »

But the actors position is relative to scale, not always the same position will show the subtitles at Y<21. How can I know if the subtitles will be show at Y<21 coordenate?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5681
    • View Profile
    • Dead:Code Site
Re: Talk position
« Reply #5 on: July 14, 2009, 07:06:51 AM »

actor.Y + actor.Height should give you the center point of the subtitle (as long as the scene doesn't scroll verticallly). actor.Height takes scaling into account.
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.099 seconds with 24 queries.