Thanks for your supporti wanted to create a delay relative to vilocity.x so bar wont stop when player just leaves the key for tactics but i kinda did not got it right
If it's a characterbody2d maybe just use is_on_floor() + holding a direction