AGS Editor

Further development of AGS Editor

Bug Issue: fadein()

Pages: [1]

rmonic79

  • AGSer
  • Posts: 177
« on: 03 May 2017, 20:47 »
fadein() show room before room load setting are done, so player position, light level, transparency and more are not shown on screen until fade end. On 3.4.0.6 works fine even without set setscreentransition to instant before doing it.

Crimson Wizard

  • AGSer
  • Posts: 7,351
« Reply #1 on: 03 May 2017, 21:01 »
Could you elaborate, in which script function do you call FadeIn()?

rmonic79

  • AGSer
  • Posts: 177
« Reply #2 on: 03 May 2017, 21:09 »
This is an example that works fine on 3.4.0.6

Code: Adventure Game Studio
  1. function room_Load()
  2. {
  3.   raininside=aRain_Inside.Play(eAudioPriorityHigh, eRepeat);
  4.   raininside.Volume=raininsideperc*OptionsSldSound.Value/100;
  5.   MUSICAVAR=aBusgiorno.Play(eAudioPriorityHigh, eRepeat);
  6.   cEgo.SetIdleView(21,0);
  7.   inzializ(true, cEgo, 0, 55);
  8.   player.RemoveTint();
  9.   OPTIONONOFFGLOBAL=true;
  10.   enableguipersonal();
  11.   cSargent.Transparency=100;
  12.   cEgo.LoseInventory(iBiglietto);
  13.   cEgo.LoseInventory(iDepliant);
  14.   cEgo.LoseInventory(iPenna);
  15.   oPioggia.SetView(95, 0);
  16.   oPioggia.Animate(0, 6, eRepeat, eNoBlock, eForwards);
  17.   oPioggia.Transparency=30;
  18.   cRagazzo.Animate(0, 5, eRepeat, eNoBlock, eForwards);
  19.   FadeIn(1);
  20.   cSargent.ManualScaling=true;
  21.   cSargent.Scaling=80;
  22.  
  23.  
  24. }
  25.  

Crimson Wizard

  • AGSer
  • Posts: 7,351
« Reply #3 on: 03 May 2017, 21:32 »
I can tell that "cSargent" will get manual scaling set only after fade in completes, because FadeIn is a blocking command.
Are other settings apply only after too?

EDIT: Also, I am not sure it is a good thing to call blocking functions inside Room_Load. Maybe it just cannot work that way.
« Last Edit: 03 May 2017, 22:09 by Crimson Wizard »

Pages: [1]

Issue Details

  • Reported
    03 May 2017, 20:47
  • Updated
    03 May 2017, 21:32
  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    AGS 3.4.1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Scripts

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011