Warnings

Started by Vincent, Sun 12/01/2014 19:01:56

Previous topic - Next topic

Vincent

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 

NickyNyce

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.

Vincent

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

  if (mouse.IsButtonDown(eMouseRight))
  {   
    player.StopMoving(); 
    cMercenario.LockView(2);
    cMercenario.Animate(2, 5, eOnce, eNoBlock, eForwards);
    Ammo -=1;
    cMercenario.UnlockView();
  }

NickyNyce

Yeah, that's what I meant. I would look in the manual about ReleaseCharView. I'm guessing it's along the same lines.

Vincent

Thanks, Thanks A Lot For The Help !
It Is An Error About The Releasing View, That I Can Understand It

SMF spam blocked by CleanTalk