Discuss Scratch

diamondgolem258
Scratcher
19 posts

Max Speed

set [KeyDirection v] to (<key [right arrow v] pressed?> - <key [left arrow v] pressed?>)
change [xv v] by ((((max_speed) * ((1) - (slidiness))) / (slidiness)) * (KeyDirection))
set [xv v] to ((slidiness) * (xv))

Using math, I devised this formula for speed of a player for a target speed.
Slidiness is <= 1
Don't credit me
If you do I will find you

Last edited by diamondgolem258 (Today 01:01:28)

Powered by DjangoBB