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