Waiting for object to finish animation before npc i allowed to move?

Started by myname, Sat 02/02/2008 17:43:40

Previous topic - Next topic

myname

Thanks for stickin with me ONeDollar and rying to help but the problem tht arises now is tht Jsper does not perform his animation at all.  Not when you begin in the room or when he is given the item.  This is what I have

function on_call (int value){
  if (value==1){
    oBlood.SetView(20); 
    cJasper.LockView(5); 
    cJasper.Animate(0, 17, eRepeat, eNoBlock, eForwards); 
    oBlood.Animate(1, 5, eOnce, eBlock, eForwards); 
    cJasper.UnlockView();
    cJasper.Walk(35, 135, eBlock, eWalkableAreas); 
  }




}

function room_AfterFadeIn()
{
  cJasper.Animate(5, 17, eRepeat, eNoBlock, eForwards);  //start mopping after fade-in
}

OneDollar

Hmm... ok...
1) What version of AGS are you using?
2) When you setup the room_AfterFadeIn and cJasper_UseInv() functions, you're not just typing them into the script, are you? You have been using the room events and character events to set them up first, right?
3) Watch the difference between views and loops. In the on_call function you're animating Jasper with view 5 and loop 0, but in the room_afterFadeIn function you're animating him with loop 5 of whatever his current view is.
4) I'm starting to run out of ideas, anyone else got any? :)

myname

1. 2.73
2. Yes sir
3. didnt change anything but you were right it should have been 0
4.  Thanks for helpin man but this is too discouraging Im just gonna change the game to avoid the problem
womp womp

OneDollar

Hmm, that's a shame. There must be something different with version 2.73 then. Sorry we couldn't sort it for you, I know it works in AGS 3.0 and I'm fairly sure it can be done in 2.73. Maybe you could come back to it later or something. Ah well, you could always make a new animation for Jasper where the blood being removed is included and just remove the object then play that ;D

monkey0506

My only question would be where he got a copy of AGS 2.73 at...Chris never officially released that version. He conclusively determined that it was built upon a foundation of pure evil and if it ever escaped it would destroy the Earth. Oh well.

(end sarcasm)

I presume you meant AGS 2.72? In that case you would simply need to move the relevant code into the appropriate event handlers. The manual should help you getting it set up...sorry to cut this post so short, but I must be going now. Best of luck.

myname

Ha yea I have my connections but seriously thanks for helping guys.

SMF spam blocked by CleanTalk