|
|
@@ -23,13 +23,13 @@ cc.Class({
|
|
|
//发射攻击事件 // 普攻
|
|
|
if (bLeft == 0) {
|
|
|
//右拳
|
|
|
- this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("right_hit", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("left_fit", 1);
|
|
|
this.node.emit("attack");
|
|
|
} else if (bLeft == 1) {
|
|
|
//左拳
|
|
|
- this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("left_fit", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("right_fit", 1);
|
|
|
this.node.emit("attack");
|
|
|
}
|
|
|
//暴击右
|
|
|
@@ -77,11 +77,11 @@ cc.Class({
|
|
|
if (bLeft == 0) {
|
|
|
//左挨打
|
|
|
// this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("be_beaten_left", 1);
|
|
|
+ //this.armature.animation.play("be_beaten_right", 1);
|
|
|
} else if (bLeft == 1) {
|
|
|
//右挨打
|
|
|
// this.armatureDisplay.node.scaleX = -0.39;
|
|
|
- this.armature.animation.play("be_beaten_right", 1);
|
|
|
+ //this.armature.animation.play("be_beaten_left", 1);
|
|
|
}
|
|
|
this.node.emit("hurt_ord");
|
|
|
}
|
|
|
@@ -90,14 +90,14 @@ cc.Class({
|
|
|
if (bLeft == 0) {
|
|
|
//左挨打
|
|
|
//被暴打
|
|
|
- this.armatureDisplay.node.scaleX = -0.39;
|
|
|
- this.armature.animation.play("be_double_hit", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = -0.39;
|
|
|
+ // this.armature.animation.play("be_double_hit", 1);
|
|
|
|
|
|
} else if (bLeft == 1) {
|
|
|
//被暴打
|
|
|
//右挨打
|
|
|
- this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("be_double_hit", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ // this.armature.animation.play("be_double_hit", 1);
|
|
|
}
|
|
|
this.node.emit("hurt_critical");
|
|
|
}
|
|
|
@@ -107,13 +107,13 @@ cc.Class({
|
|
|
|
|
|
//被连击打
|
|
|
//左挨打
|
|
|
- this.armatureDisplay.node.scaleX = -0.39;
|
|
|
- this.armature.animation.play("be_critical_strike", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = -0.39;
|
|
|
+ // this.armature.animation.play("be_critical_strike", 1);
|
|
|
} else if (bLeft == 1) {
|
|
|
//被连击打
|
|
|
//右挨打
|
|
|
- this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("be_critical_strike", 1);
|
|
|
+ // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ // this.armature.animation.play("be_critical_strike", 1);
|
|
|
}
|
|
|
this.node.emit("hurt_double");
|
|
|
}
|
|
|
@@ -132,8 +132,8 @@ cc.Class({
|
|
|
if (event.animationState.name === "left_fit") {
|
|
|
console.log("attack 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._RightJayShow = false;
|
|
|
this.controScp._LeftJayShow = false;
|
|
|
@@ -142,8 +142,8 @@ cc.Class({
|
|
|
if (event.animationState.name === "right_hit") {
|
|
|
console.log("attack 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._RightJayShow = false;
|
|
|
this.controScp._LeftJayShow = false;
|
|
|
@@ -152,7 +152,7 @@ cc.Class({
|
|
|
if (event.animationState.name === "double_hit") {
|
|
|
console.log("critical_strike 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._CriticalStrike = false;
|
|
|
@@ -162,8 +162,8 @@ cc.Class({
|
|
|
if (event.animationState.name === "critical_strike") {
|
|
|
console.log("critical_strike 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._CriticalStrike = false;
|
|
|
this.aicontroScp._Statepassivity = false;
|
|
|
@@ -171,16 +171,16 @@ cc.Class({
|
|
|
if (event.animationState.name === "be_beaten_left" || event.animationState.name === "be_beaten_right") {
|
|
|
console.log("double-hit 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
this.controScp._DoubleHit = false;
|
|
|
this.aicontroScp._Statepassivity = false;
|
|
|
}
|
|
|
if (event.animationState.name === "dodge") {
|
|
|
console.log("dodge 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- //this.armatureDisplay.node.scaleX = 0.39;
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._RightDodge = false;
|
|
|
this.controScp._LeftDodg = false;
|
|
|
@@ -189,9 +189,9 @@ cc.Class({
|
|
|
if (event.animationState.name === "block") {
|
|
|
console.log("block 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
|
|
|
- this.armature.animation.play("idel", 0);
|
|
|
+ this.armature.animation.play("idle", 0);
|
|
|
|
|
|
this.controScp._Defence = false;
|
|
|
}
|
|
|
@@ -199,7 +199,7 @@ cc.Class({
|
|
|
event.animationState.name === "be_double_hit" || event.animationState.name === "be_beaten_right") {
|
|
|
console.log("be_beaten 动作播放完毕!!!");
|
|
|
//TODO:
|
|
|
- // this.armatureDisplay.node.scaleX = 0.39;
|
|
|
+ this.armatureDisplay.node.scaleX = 0.39;
|
|
|
|
|
|
this.armature.animation.play("idle", 0);
|
|
|
|