Merge branch 'main' into translations-system

This commit is contained in:
Ne_Eo
2024-11-05 21:29:00 +01:00
2 changed files with 47 additions and 9 deletions
+3 -4
View File
@@ -278,15 +278,14 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
@:noCompletion var __reverseTrailProcedure:Bool = false;
// When using trails on characters you should do `trail.beforeCache = char.beforeTrailCache;`
// When using trails on characters you should do `trail.beforeCache = char.beforeTrailCache;` and `trail.afterCache = char.afterTrailCache;`
public dynamic function beforeTrailCache()
if (isFlippedOffsets()) {
flipX = !flipX;
scale.x *= -1;
__reverseTrailProcedure = true;
}
// When using trails on characters you should do `trail.afterCache = char.afterTrailCache;`
public dynamic function afterTrailCache()
if (__reverseTrailProcedure) {
flipX = !flipX;
@@ -543,4 +542,4 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
list.push(CoolUtil.getFilename(path));
return list;
}
}
}