How do i create the walk to run animation like in sonic 1 2 3k for both left right

ive been struggling so much with the animtions the hedge character animator only does it to the right side could someone help out id be so thankful

Most likely you are using platformer behavior

And it have condition something like speed or horizontal velocity

BUT problem is left is negative right is positive
Like if you move left your velocity goes from 0 to -1 -2 -3 -4 and so go on
But if you move right it goes from 0 to 1 2 3 4 and so go on

So 0 is when you don’t move
And anything above is moving

But because that minus sign for left movement making it negative value we need to use abs()
What it does is remove from any value minus sign

For example you have variable score = 100
So abs(score) = 100
But if score = -100
Then abs(score) = 100

Because abs removed that - sign

NOW you can literally check if abs(player.PlatformerBehavior::Velocity()) ← or whatever is correct expression for checking that speed
Is 0 so now your player is not moving
Add to it player is on floor and you have event for your idle animation

Now you check if abs(player.PlatformerBehavior::Velocity()) is above 0
And if abs(player.PlatformerBehavior::Velocity()) is below let’s say 15
And player is on floor
That is your walk animation

THEN
abs(player.PlatformerBehavior::Velocity()) is above 15
Player is on floor

This is your run animation

Where you will need to adjust values

You can also set animation speed scale or however its called to
abs(player.PlatformerBehavior::Velocity()) * some number or divide it by some number
To adjust animation speed to how fast it change frames based on how fast player is moving

im using the hedgehog platformer extension to make it more clear

I didn’t realise that was a thing? Isn’t it a bit legally iffy with copyright and that?

I would assume it have same or at least similar conditions/expressions

Uh tanks man but it is the var score a scene global or player var

For sake of functionality it does NOT matter
But for sake of how you most likely want to handle score you would want it to be global variable

Could you make a simple example or screenshot of the events so i could understand which eventscript to use

I think i am making you more harm than good

That score i mentioned was EXAMPLE to explain to you how abs works

And you think its some kind of variable you need to use to get it to work

And if you fail to understand such simple concept and even so you are unable to replicate what i told you to do i really think i giving you hammer to smash peanut

But i gonna give you benefit of the doubt

There is no variable you need there is NO events you need to see

You 1st need to check if your player have condition to check its velocity or horizontal speed or something like that

ALSO i never used that sonic behavior so maybe my assumption is wrong and what i believe should exist in fact does not