calling upon new views?

Started by blueshamoo, Tue 26/08/2008 16:36:54

Previous topic - Next topic

blueshamoo

the tutorial says it will cover this but I could not yet find the answer.
let's say I had a view for my character only 3 frames long that showed him throwing something and that was view 5.
let's say I want to change my main character cEgo to view 5. run that animation without looping then go back to the last view. how do you do that?

GarageGothic

Check in the manual under "Character.LockView". The code for your animation should be something like this:

Code: ags
cEgo.LockView(5);
cEgo.Animate(0, 2, eOnce, eBlock, eForwards);
cEgo.UnlockView();


Change the second parameter of cEgo.Animate to slow down/speed up the animation.

blueshamoo

ok this is going to sound really stupid.

I looked for a manual on the website and in the folder i downloaded AGS in. I dont see anything called manual, I only learned what i know from the tutorial on this page. can you help me out pls :)

Gilbert

Just press F1 in the editor or double click the .chm file in the AGS folder.
All these information are stated in bold in the sticky located on the top of this forum. :P

SMF spam blocked by CleanTalk