Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Vincent on Sun 12/01/2014 19:01:56

Title: Warnings
Post by: Vincent on Sun 12/01/2014 19:01:56
Good Evening To All AGSer !
I Have A Question To Ask You Again...
In My Folder Game There's A Text Document Where It Says That There Is An Error...


(in room 1): Warning: ChangeCharacterView was used while the view was fixed - call ReleaseCharView first


Someone Know How To Fix This ?!


Post Scriptum (Actually, In My Game, I Cannot See This Kind Of Error...) :-X 
Title: Re: Warnings
Post by: NickyNyce on Sun 12/01/2014 19:17:36
After setting a characters view...you should unlock it when you're done with it instead of just changing it again. The warning should go away once you have done this.
Title: Re: Warnings
Post by: Vincent on Sun 12/01/2014 19:28:17
Hello NickyNyce Thanks For Answering !
Do You Mean When You Animate A View ?!
I Am More Than Sure I Done So In This Way...
As Example :

Code (ags) Select

  if (mouse.IsButtonDown(eMouseRight))
  {   
    player.StopMoving();
    cMercenario.LockView(2);
    cMercenario.Animate(2, 5, eOnce, eNoBlock, eForwards);
    Ammo -=1;
    cMercenario.UnlockView();
  }
Title: Re: Warnings
Post by: NickyNyce on Sun 12/01/2014 19:44:29
Yeah, that's what I meant. I would look in the manual about ReleaseCharView. I'm guessing it's along the same lines.
Title: Re: Warnings
Post by: Vincent on Sun 12/01/2014 19:52:14
Thanks, Thanks A Lot For The Help !
It Is An Error About The Releasing View, That I Can Understand It