Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ginanubismon on Thu 27/04/2006 16:23:03

Title: Short animation help (Solved)
Post by: ginanubismon on Thu 27/04/2006 16:23:03
I do not know if this had been covered in the manual/topics/wiki but I searched them all and I could not find the basic scripting for running a short animation.

The basic idea is simple short scenes like a puzzle solution where the main character, Harris, changes disguises which the right contition is right, let's say if the character steps on a hotspot.

Thanks for your help.
Title: Re: Short animation help
Post by: Ashen on Thu 27/04/2006 16:33:54
So which bit exactly are you asking for help with? Look to the manual, the Character functions and properties (http://www.adventuregamestudio.co.uk/manual/Character%20functions%20and%20properties.htm) - in particular ChangeView, LockView, UnlockView and Animate may all be of interest.

Quoteif the character steps on a hotspot.
You can check this with the Hotspot.GetAtScreenXY (http://www.adventuregamestudio.co.uk/manual/Hotspot.GetAtScreenXY.htm) functon. However, you're probably better off using Regions in this case - they have an interaction that's automatically triggered when the player walks on to them, which saves a bit of messing round in rep_ex.

Beyond that, you'll have to be more specific about what you want.
Title: Re: Short animation help
Post by: ginanubismon on Thu 27/04/2006 22:30:20
It was the "Lockview" fuction I was looking for, thanks.

EDIT: I forgot to thank you about the region idea, I'll try that to simplify the game, thanks.