1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-30 18:53:35 +00:00

fix placement of bf

This commit is contained in:
Cameron Taylor 2021-01-16 15:20:57 -05:00
parent a42e3b9dfc
commit b3aec93d45

View file

@ -291,6 +291,9 @@ class Character extends FlxSprite
{
flipX = !flipX;
// Doesn't flip for BF, since his are already in the right place???
if (character != 'bf' && character != 'bf-car')
{
// var animArray
var oldRight = animation.getByName('singRIGHT').frames;
animation.getByName('singRIGHT').frames = animation.getByName('singLEFT').frames;
@ -305,6 +308,7 @@ class Character extends FlxSprite
}
}
}
}
override function update(elapsed:Float)
{
@ -395,14 +399,11 @@ class Character extends FlxSprite
{
animation.play(AnimName, Force, Reversed, Frame);
if (animation.curAnim != null)
{
var daOffset = animOffsets.get(animation.curAnim.name);
if (animOffsets.exists(animation.curAnim.name))
{
offset.set(daOffset[0], daOffset[1]);
}
}
if (curCharacter == 'gf')
{