I'm trying to use the same freespecial multiple times (air combo) but using mp cost doesn't seem to work, heres how I have everything set up
player keys
character freespecial
video showing mpcost (blue bar under red bar at top of the screen)
https://www.youtube.com/watch?v=7469hFaNOkQ
tried using Illu's @cmd mp cost, the mp drains but the character can still perform the freespecial, also when mp finishes while standing it switches from ground freespecial to air freespecial
https://www.youtube.com/watch?v=8uK3bjnUabc
also tried copying freespecial 8 and changing it to follow x but same results
also tried keyint in anim jump with same results
player keys
Code:
void main()
{
int iPlIndex = getlocalvar("player"); //Get calling player
void vSelf = getplayerproperty(iPlIndex , "entity"); //Get calling entity
void vAniID = getentityproperty(vSelf,"animationID"); //Get current animation ID
void vAniPos = getentityproperty(vSelf, "animpos"); //Get current animation frame
int iDir = getentityproperty(vSelf, "direction"); //Get current facing direction
void iUp = playerkeys(iPlIndex, 1, "moveup"); // New key status of "Up"
void iDown = playerkeys(iPlIndex, 1, "movedown"); // New key status of "Down"
void iLeft = playerkeys(iPlIndex, 1, "moveleft"); // New key status of "Left"
void iRight = playerkeys(iPlIndex, 1, "moveright"); // New key status of "Right"
void iJump = playerkeys(iPlIndex, 1, "jump"); //New key status of "Jump"
void iSpecial = playerkeys(iPlIndex, 1, "Special"); //New key status of "Special"
void iAttack = playerkeys(iPlIndex, 1, "attack"); //New key status of "Attack"
void iAttack2 = playerkeys(iPlIndex, 1, "attack2"); // New key of "Attack 2"
void iAttack3 = playerkeys(iPlIndex, 1, "attack3"); // New key of "Attack 3"
void iAttack4 = playerkeys(iPlIndex, 1, "attack4"); // New key of "Attack 4"
void iLeftR = playerkeys(iPlIndex, 2, "moveleft"); // Release status of "Left"
void iRightR = playerkeys(iPlIndex, 2, "moveright"); // Release status of "Right"
void iDownR = playerkeys(iPlIndex, 2, "movedown"); //Release status of "Down"
void iAttackR = playerkeys(iPlIndex, 2, "attack"); //Release status of "Attack"
void iUpH = playerkeys(iPlIndex, 0, "moveup");
void iLeftH = playerkeys(iPlIndex, 0, "moveleft");
void iRightH = playerkeys(iPlIndex, 0, "moveright");
Code:
if(vAniID == openborconstant("ANI_FREESPECIAL8") ){ //Jumping?
if(iAttack2){ //ATT2?
changeentityproperty(vSelf, "animation", openborconstant("ANI_FREESPECIAL8"));
}
}
Code:
com a2 FREESPECIAL8
Code:
anim freespecial8
jumpframe 0 1 0 0
mponly 1
mpcost 10
offset 67 165
DELAY 6
frame Data/chars/spiderman/awe1.png
bbox 68 67 57 93
@cmd shooter2 "webh" 120 57 0 5
frame Data/chars/spiderman/awe2.png
video showing mpcost (blue bar under red bar at top of the screen)
https://www.youtube.com/watch?v=7469hFaNOkQ
tried using Illu's @cmd mp cost, the mp drains but the character can still perform the freespecial, also when mp finishes while standing it switches from ground freespecial to air freespecial
https://www.youtube.com/watch?v=8uK3bjnUabc
also tried copying freespecial 8 and changing it to follow x but same results
also tried keyint in anim jump with same results