Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Doku on Sat 23/07/2005 18:05:27

Title: fonts,slow fade out/in,talking speech [SOLVED]
Post by: Doku on Sat 23/07/2005 18:05:27
Hi
1)I download some dott fonts,from an old topic.I want to antialize them but they arent ttf,is there a way to do that?
2)Is there a way,when I change rooms,doing that by slow fade out/int,because the AGS transition is very quickly!
3)When I change in characters section,speed and animation speed option,I dont see any diference in the game,I want to do a fast talking animation.
thanx
Title: Re: fonts,slow fade out/in,talking speech
Post by: strazer on Sun 24/07/2005 17:43:53
1) Try using a truetype font like this one (http://www.abstractfonts.com/fonts/search/full_listing.htm?kw=tentacle).

2) You have to fade manually to do that:

- Set "Room transition style" to "Instant" in the General settings.
- Create a screen-sized GUI, set its background color to 16 (black), its border color to 0, its Z-order to 0 and name it "BLACKSCREEN".
- Put this in the on_event function (menu "Script" -> "on_event"):

function on_event(EventType event, int data) {
  //...

  if (event == eEventLeaveRoom) {
    FadeOut(1); // increase number to increase fade-out speed
    gBlackscreen.Visible = true;
  }
  else if (event == eEventEnterRoomBeforeFadein) {
    SetGlobalInt(44, 1);
  }

  //...
}

- and this in the repeatedly_execute function ("Script" -> "repeatedly_execute"):

function repeatedly_execute() {
  //...

  if (GetGlobalInt(44) == 1) {
    FadeOut(64);
    gBlackscreen.Visible = false;
    Wait(1);
    FadeIn(1); // increase number to increase fade-in speed
    SetGlobalInt(44, 0);
  }

  //...
}


3.) I don't think talking animations are affected by a character's animation speed. You can change the default talking anim speed for all characters by changing the game.talkanim_speed variable in the game_start function ("Script" -> "game_start"):

function game_start() {
  //...

  game.talkanim_speed = 2; // default delay per frame is 5

  //...
}


You could also try clicking "SPD: 0" for all frames of your talking view and entering negative values (-3 for example: 5 + -3 = 2). Don't know if that works though.
Title: Re: fonts,slow fade out/in,talking speech
Post by: Doku on Sun 24/07/2005 19:20:08
Thanx a lot!
Title: Re: fonts,slow fade out/in,talking speech
Post by: strazer on Sun 24/07/2005 20:28:00
Glad I could help. :)