Jibble

There is a new version of the forums ready for testing. Please post here if you're willing to help test! We could also use the help of coders!

Author Topic: Scripting issue running reach up animation  (Read 207 times)

MED

Scripting issue running reach up animation
« on: 08 May 2022, 16:57 »
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.

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on one or more games that won an AGS Award!
    •  
    • Cassiebsg worked on one or more games that was nominated for an AGS Award!
Re: Scripting issue running reach up animation
« Reply #1 on: 08 May 2022, 17:12 »
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?
There are those who believe that life here began out there...

MED

Re: Scripting issue running reach up animation
« Reply #2 on: 08 May 2022, 17:15 »
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.