Game authors and players, please read this thread!

Author Topic: player freezes pose after dialog *FIXED*  (Read 304 times)  Share 

myname

    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
player freezes pose after dialog *FIXED*
« on: 21 May 2012, 01:00 »
After a dialog where the player acquires an object my player freezes facing in one direction and when I try to walk somewhere else he just slides backwards to the point clicked.  Here is the option script in the dialog thanks in advance for any help:

@3
  player.FaceCharacter(cNancy,eBlock);
Nancy:You son of a bitch!
Nancy:I'll slice your face off, drape it over my cat's litter box, throw it in the oven at 350 degrees for 55 min, and feed it to your moth...
  cSteve.LockView(18);
  cSteve.Animate(0,5,eOnce,eBlock,eForwards);
  cSteve.UnlockView();
Steve:Count it
  Wait(40);
Nancy:Oh my.
Nancy:My lord.
  Wait(40);
Nancy:This is absolute heaven.
Steve:It's extra strength.
Nancy:Oh, you are still here.
Nancy:Leave me and take whatever you want prick.
  player.LoseInventory(iciggum);
  player.Walk(247, 121,eBlock);
  Wait(20);
  player.ChangeView(26);
  player.Animate(0,1,eOnce,eBlock,eForwards);
  Wait(20);
  player.AddInventory(iwatercooler);
  object[1].Visible = false;
  player.Say("Finally, now Jasper can mop up.");
stop
« Last Edit: 22 May 2012, 23:31 by myname »

Re: player freezes pose after dialog
« Reply #1 on: 21 May 2012, 01:33 »
your script looks fine. have you checked the userGUI in the editor?

myname

    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: player freezes pose after dialog
« Reply #2 on: 21 May 2012, 01:43 »
Thanks for the response strategyjunkie but I'm not sure exactly what I'm supposed to check in the GUIs settings.

Ghost

  • Guest
Re: player freezes pose after dialog
« Reply #3 on: 21 May 2012, 02:10 »
  player.ChangeView(26);
  player.Animate(0,1,eOnce,eBlock,eForwards);
  MISSING UNLOCKVIEW!!!! <--
  Wait(20);
One UnlockView is missing- add it, and things should work all right.


Nancy:I'll slice your face off, drape it over my cat's litter box, throw it in the oven at 350 degrees for 55 min, and feed it to your moth...
I want to see that animated!!!  ;-D
« Last Edit: 21 May 2012, 02:12 by Ghost »

myname

    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: player freezes pose after dialog
« Reply #4 on: 21 May 2012, 04:17 »
Ha, thanks.  I don't  think I have the animating chops for that yet.  I put in the new script and I still had the same problem.  Here it is.

@3
  player.FaceCharacter(cNancy,eBlock);
Nancy:You son of a bitch!
Nancy:I'll slice your face off, drape it over my cat's litter box, throw it in the oven at 350 degrees for 55 min, and feed it to your moth...
  cSteve.LockView(18);
  cSteve.Animate(0,5,eOnce,eBlock,eForwards);
  cSteve.UnlockView();
Steve:Count it
  Wait(40);
Nancy:Oh my.
Nancy:My lord.
  Wait(40);
Nancy:This is absolute heaven.
Steve:It's extra strength.
Nancy:Oh, you are still here.
Nancy:Leave me and take whatever you want prick.
  player.LoseInventory(iciggum);
  player.Walk(247, 121,eBlock);
  Wait(20);
  player.ChangeView(26);
  player.Animate(0,1,eOnce,eBlock,eForwards);
  player.UnlockView();
  Wait(20);
  player.AddInventory(iwatercooler);
  object[1].Visible = false;
  player.Say("Finally, now Jasper can mop up.");
stop

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: player freezes pose after dialog
« Reply #5 on: 21 May 2012, 08:44 »
.ChangeView changes the view permanently.
You need to use .LockView, like further up in your code, then .UnlockView after the animation.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

myname

    • I can help with play testing
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: player freezes pose after dialog
« Reply #6 on: 22 May 2012, 00:57 »
Fixed.  Thank you Khris.