Jibble

Author Topic: (solved) Set y coordinate for Sierra-style portraits  (Read 1682 times)

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
As far as I can tell, currently a Sierra-style portrait is displayed at fixed coordinates hard-coded into the engine. Would it be possible to make those settable by the user? My portraits are rather big so the default coordinate make them clip off the bottom of the screen, I would like to move them up.
« Last Edit: 30 Sep 2013, 23:56 by Radiant »

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Set y coordinate for Sierra-style portraits
« Reply #1 on: 06 Jun 2013, 17:30 »
Ideally there should be a customizable "speech style" item on project, but since there's none, what would be a good design for a quick fix?
A global setting, a script command, any ideas?

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
Re: Set y coordinate for Sierra-style portraits
« Reply #2 on: 06 Jun 2013, 17:34 »
In my opinion, a variable like game.speech_portrait_y, game.speech_portrait_left_x and game.speech_portrait_right_x would be sufficient. A programmer would be likely to set those once during game_start () and never touch them again.

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Set y coordinate for Sierra-style portraits
« Reply #3 on: 10 Jun 2013, 20:04 »
I've been thinking, perhaps the X coord for the right portrait should define the offset from the right screen side instead of offset from 0? Otherwise you'll have to calculate it depending on speech view width.
Also, will it suffice to have a single variable for X position (as offset from relative side)?

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
Re: Set y coordinate for Sierra-style portraits
« Reply #4 on: 11 Jun 2013, 08:44 »
Yes, that would suffice.

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on a game that won an AGS Award!
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
Re: Set y coordinate for Sierra-style portraits
« Reply #5 on: 12 Jun 2013, 12:00 »
It's coming to the next 3.3.0 beta update :)