Adventure Game Studio | Forums

AGS Support => Beginners' Technical Questions => Topic started by: MED on Sun 08/05/2022 16:57:49

Title: Scripting issue running reach up animation
Post by: MED on Sun 08/05/2022 16:57:49
Very new to the engine (about 3 days) so please go easy on the technical jargon lol. I'm trying to run a view I created for my playable character of him reaching up. I want it to run when I interact with an object, is there any tips you can give me to activate the animation? I tried :

player.ChangeView(6);

but it never worked. Searched through the forums with no luck.
Title: Re: Scripting issue running reach up animation
Post by: Cassiebsg on Sun 08/05/2022 17:12:22
This recent topic explains some stuff on how to animate a character: https://www.adventuregamestudio.co.uk/forums/index.php?topic=59891.msg636645160#msg636645160 (feel free to read the entire topic, as well. :)

However you need to explain this "but it never worked".

Do you mean, nothing happened? Or that the player did change view, but the animation didn't run? (the first would be an indication that you placed that line in a function that is not linked, the second that... it really that isn't the correct way to animate a view, but manualy making the player move after the change view, you would see your animation instead of the normal walk cycle.)
Or do you mean something else?
Title: Re: Scripting issue running reach up animation
Post by: MED on Sun 08/05/2022 17:15:10
It did nothing at all is what I meant. Looking at the script in that link UnlockView, LockView and Animate was the missing script. Thank you.