correction hitbox qui clignote
This commit is contained in:
@ -25,6 +25,7 @@ public class Frame {
|
||||
private boolean moveCancellable;
|
||||
private boolean isDashCancellable;
|
||||
private boolean lastFrameOfHit;
|
||||
private boolean isInverted;
|
||||
/**
|
||||
* an int of 4 that determines the texture wrap for the frame
|
||||
*/
|
||||
@ -164,6 +165,10 @@ public class Frame {
|
||||
this.lastFrameOfHit = lastFrameOfHit;
|
||||
}
|
||||
|
||||
public boolean getIsInverted(){
|
||||
return this.isInverted;
|
||||
}
|
||||
|
||||
//Inverts all hitboxes of the frame horizontally. Used if the character looks to the left instead of the right
|
||||
public void invertHitBoxes() {
|
||||
for(Passive_HitBox p: this.passHitBox) {p.reverseHorizontally();}
|
||||
@ -171,6 +176,7 @@ public class Frame {
|
||||
for(Passive_throw_HitBox p: this.passThrowHitBox) {p.reverseHorizontally();}
|
||||
for(Active_throw_Hitbox p: this.actThrowHitBox) {p.reverseHorizontally();}
|
||||
this.pushHitBox.reverseHorizontally();
|
||||
isInverted = true;
|
||||
}
|
||||
|
||||
public void clone(Frame f) {
|
||||
|
Reference in New Issue
Block a user