#BodyVelocity/LinearVelocity distance being fps dependent
1 messages · Page 1 of 1 (latest)
Not sure I understand
One u got it under heartbeat
So you waiting prob results in code being run twice
Cuz prev didn't finish
And u don't have debounce for velocity
Wait
Server or client
Client
Hm i'll try
Note that task.wait 1/60 isn't rly 60 times a second if u use any waits in loop
BodyVelocity/LinearVelocity distance being fps dependent
Shouldn't matter if u just wanna ratelimit it to certain amount tho
Cuz u don't need exactly 60/s right
Just for it to be same
For everyone
I just want the distance to be the same independent of fps
with anything higher than 60 I go a shorter distance
Try the while loop ig
You people heard of deltaTime?
I have, I don't know how to make use of it
I'm assuming you must mean how the fps effects the velocity of object moved by LinearVelocity?
Bro I asked a simple question
You just want to make sure before implementing it?
Cuz you think fps difference might impact LV or BV?
No, I AM implementing it. FPS is affecting the distance/velocity of it and i'm trying to figure out how to make fps not have an affect on LV or BV
Brother
Roblox already handles LV and BV separately
in the physics engine
And it is already framerate independent
Then for what reason am I going a different distance when I have higher fps?
Where'd you see this? in ur own game?
off topic, but how did you make this dash system? i assume its similar to tsb and those types of battlegrounds dashing
Share the code snippet where you handle the LV
Dashes is the only thing I didn't know how to make so, I took it from a tutorial
Is it that bad?
I would appreciate it
First off. Please switch to LV
idk i just dont like deprecated stuff
btw
You wanna learn how to code dashes?
or just want the job done?
I would much prefer to know how to code for future reference
i see...
u see, im not a great teacher, les still try
So first off, the LinearVelocity thingy
You just set its Velocity ones
yk about ALV?
Yeah
AssemblyLinearVelocity?
You treat it like that
But its different
it doesnt change once u set it up
unless you change the value again
check ur dms...