Yo does anyone have any idea on what logic I need to apply to make a movement system like this with stilts? (the longer you hold W the wider the step you make)
Maybe make somewhat a timer that works like that:
the length of one step increases when “W” key is holded
I’m not too much of a programmer, so I cannot show you any example howto do it in Lus, but I hope this helps! ![]()
Is it possible to modify the length of a single step???
like @TheRobloxGato said, you could add a timer with tick() or something whenever W is pressed, then change the walkspeed the longer the time is, for example:
local Time = tick() --tick() when W is pressed)
task.wait(5) -- you can maybe do a loop to check how long the W key has been pressed
print(tick() - Time) -- 5 (approx.)
Make a variable in your script with a name associated with length, and when the specific time passes (thank you @oFinallyyy for an example :)) this variable increases.
If you’re asking for the actual movement, I would make an attachment underneath the leg? and make it move to the position precalculated in the script using the previous position and adding the length to one of dimensions. Maybe it’ll require not straight, but convex movement if you have obstacles or uneven surface.
Hope this helps! ![]()