Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: techie775 on Wed 17/12/2008 21:13:12

Title: Animations
Post by: techie775 on Wed 17/12/2008 21:13:12
Okay I looked on the website and forum and I can't find anything about Animations they only mention the walking animation. I'm trying to find out how to animate a character when they are standing still in a room. I've tried doing this but it gives me " Failed to save room room1.crm; details below
room1.asc(7): Error (line 7): Parse error: unexpected 'cgammie'"

the code in the room is:
cgammie.LockView(4);
cgammie.Animate(0, 1, 0, eBlock, eBackwards);
cgammie.UnlockView();

I'm not even sure how to do the animations for things in the room. If anyone knows anything or a page to direct me to I'd appreciate it. Thanks.
Title: Re: Animations
Post by: Dualnames on Wed 17/12/2008 21:25:57

I'm trying to find out how to animate a character when they are standing still in a room. I've tried doing this but it gives me " Failed to save room room1.crm; details below
room1.asc(7): Error (line 7): Parse error: unexpected 'cgammie'"

the code in the room is:
cgammie.LockView(4);
cgammie.Animate(0, 1, 0, eBlock, eBackwards);
cgammie.UnlockView();


First of all the code above is good and works.
Second of all you've placed the code in the wrong place.

In your case however you want to have the character animating when he's idle. That's very easy to do. Delete that code(or save it to a txt file in case you want to use it somewhere else). Go and open the cgammies properties window. Find idle view. Set view to 4.

And search the manual more on idle. That will get you going in no time.

http://www.adventuregamestudio.co.uk/manual/Character.SetIdleView.htm

The link might be of use.
Title: Re: Animations
Post by: techie775 on Wed 17/12/2008 21:34:54
Sweet, thanks for pointing me in the right direction.
Title: Re: Animations
Post by: Dualnames on Wed 17/12/2008 21:35:45
Glad I was of any help.