Variable character speeds?

Started by lilinuyasha, Wed 11/03/2015 16:40:16

Previous topic - Next topic

lilinuyasha

I tried searchign for this and couldn't find anything, so here goes.

How would I mkae a character walk faster than their normal walking speed? I'm trying to have a guilty character Dash out of the room as fast as possible, which seems really anticlimactic at her normal walk speed. How would I make this faster?

note:I don't have running (Actually, given that they're all ponies, galloping) animations.
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

NickyNyce

check out... Character.SetWalkSpeed

Code: ags
cEgo.SetWalkSpeed(10, 10);


lilinuyasha

hm. I seemed to have missed that. I was looking at "speed" in the dynamic list and it didn't come up. Thanks!
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

Snarky

But if you're using the same animations as for the regular walk, you don't want to mess with the walkspeed, because that's basically the "step length." Your character will animate at the same speed, but jump further between each frame.

What you want instead is (the slightly misnamed) Character.AnimationSpeed, which is how long it holds each animation frame. Set it to a low value (like 1 or 2), and the animation will fly more quickly, and the character move correspondingly faster.

SMF spam blocked by CleanTalk