[RESOLVED] How to pause a character during walk animation?

Started by paolo, Wed 09/02/2011 13:36:48

Previous topic - Next topic

paolo

I know that you can extend or shorten the time that each frame of an animation is on for using the SPD setting below the frames in the animation view, but is there a way of varying, in any given frame of a walk animation, the speed that the character moves across the screen while that frame of the animation is being displayed? Specifically, I want the character to go through the full cycle of frames, moving forward as they do (as already happens), then remain stationary for a moment before repeating the cycle. Is there a way of doing this in AGS? At the moment the only solution I see is to write my own code to do this, which wouldn't be too hard, but obviously I'd prefer not to if there's a way to do it in AGS.

On the subject of writing stuff myself: is there a way of determining in AGS which position a character will walk to when the user clicks on a given position on the screen that is not in a walkable area? Again, I could code this up myself but it would make life a lot easier for me if the information is already accessible somehow.

Just to be clear, I'm asking if there are functions to do this in AGS rather than how to code either of these things up from scratch.

Thanks.

Khris

I'm pretty sure neither of these things is possible using built-in stuff.

Unai

Just wondering, why don't you create a custom view with some extra frames in the frame you want "locked" then use that view when you want the character to... ¿ice-skate?
I am a deeply superficial person

paolo

Quote from: Unai on Wed 09/02/2011 18:11:06
Just wondering, why don't you create a custom view with some extra frames in the frame you want "locked" then use that view when you want the character to... ¿ice-skate?

Hm, I don't think that would do what I want. I don't want the character to glide but to remain still for a moment.

In any case, I have now written my own code to do both of the things I was looking for. Thank you both for your ideas.

SMF spam blocked by CleanTalk