Save Screenshots and Display()

Started by SupSuper, Tue 02/08/2005 16:00:36

Previous topic - Next topic

SupSuper

- I'm using the "Save screenshots with saved games" feature. However, the screenshots get saved with the Load/Save dialog on top (which isn't very helpful) EVEN if I close the dialog before using SaveGameSlot(). How do I fix this?

- Is there a way to get the text in Display() boxes to be center-aligned, instead of left-aligned?

- I've got the following bunch of code:
EndCutscene();
Text.SetText("");
gBar.Visible = false;
Display("England, Clement Manor : March 1839");

However, after EndCutscene(), the script jumps to the Display() line, not running the lines in-between. How do I fix this?
Programmer looking for work

Rui 'Trovatore' Pires

1 - There are some ways around it. My personal favourite is to mess with DynamicSprite.CreateFromScreenshot BEFORE calling up the Save GUI, but I'm sure there are better ones. Still, look into it.

Or, try using a Wait(1) BEFORE you use SaveGameSlot.*

2 - Yeah, look in the manual. There's a sort of game.align_text variable. Unless it only works in speech, and in that caso, no, there isn't.

3 - Try adding a Wait(1) before Display. *

*Some things are not done until the screen is refreshed, and some things refresh first. In 1, SaveGameSlot ALWAYS saves only when you reach the end of the script, much like ChangeRoom - but it probably does it BEFORE the screen gets refreshed. With a Wait(1), the screen should refresh, the GUI should disappear, and THEN it should save. The same method MAY help you with 3, I'm not sure but it's always worth a try.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

SupSuper

much thanks, the Wait(1) worked like a charm, as well as the game.text_align variable :D
Programmer looking for work

SMF spam blocked by CleanTalk