You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Parts/CharacterMovement.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ export class CharacterMovement extends Part {
16
16
this.type="CharacterMovement";
17
17
}
18
18
19
-
act(_delta: number): void{
19
+
act(delta: number): void{
20
20
if(!this.input){
21
21
if(!this.warned.has("MissingInput"))this.top?.warn(`CharacterMovement <${this.name}> (${this.id}) is missing an input property. Please create an input on the scene and pass it.`) ? this.warned.add("MissingInput") : null;
22
22
return;
@@ -26,7 +26,7 @@ export class CharacterMovement extends Part {
26
26
if(!transform){
27
27
return;
28
28
}
29
-
29
+
constspeed=this.speed*delta;
30
30
constkeys=this.input.downkeys;
31
31
letdx=0;
32
32
letdy=0;
@@ -66,7 +66,7 @@ export class CharacterMovement extends Part {
0 commit comments