Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: blueshamoo on Tue 26/08/2008 16:36:54

Title: calling upon new views?
Post by: blueshamoo on Tue 26/08/2008 16:36:54
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?
Title: Re: calling upon new views?
Post by: GarageGothic on Tue 26/08/2008 17:08:36
Check in the manual under "Character.LockView". The code for your animation should be something like this:

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.
Title: Re: calling upon new views?
Post by: blueshamoo on Wed 27/08/2008 01:30:25
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 :)
Title: Re: calling upon new views?
Post by: Gilbert on Wed 27/08/2008 01:40:38
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 (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14373.0) located on the top of this forum. :P