dantedevil
Well-known member
Beyond that I have almost everything ready to launch the demo and I can only wait for the translation of the dialogues that a friend is making me, I miss a movement of Vega that I could not incorporate or not have an effective solution.
Lately I came up with an idea to do it, but for that I need to modify a script, I have tried to do it on my own for many days, but I did not succeed.
The idea is to modify this script to verify the Z coords and if it is within the distance, change the animation:
It would be something like this:
void wallhit3(int Distz, void Ani)
My idea is to place a wall against the background of the screen, so that when Vega jumps on the fence of the background, use the script and when found at a specific distance, there would change animation to walk on the fence and then jump on the player . In this way he would perform the classic Street Fighter 2 attacks.
I have already edited the animations to walk on the fence, so I just need the script to make it come true ...
Lately I came up with an idea to do it, but for that I need to modify a script, I have tried to do it on my own for many days, but I did not succeed.
The idea is to modify this script to verify the Z coords and if it is within the distance, change the animation:
Code:
void wallhit2(int Dist, void Ani)
{// Checks if there is wall/platform at defined distance change animation
void self = getlocalvar("self");
int Direction = getentityproperty(self, "direction");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "y");
int z = getentityproperty(self, "z");
int Hy = -1; int Py = -1;
if(Direction == 0){ //Is entity facing left?
Dist = -Dist; //Reverse Dist to match facing
}
float H = checkwall(x+Dist,z);
void Plat = checkplatformbelow(x+Dist,z, y+20);
if(Plat){
Hy = getentityproperty(Plat, "grabforce");
Py = getentityproperty(Plat, "y");
}
if(H > y || Py+Hy > y){
performattack(self, openborconstant(Ani));
}
}
It would be something like this:
void wallhit3(int Distz, void Ani)
My idea is to place a wall against the background of the screen, so that when Vega jumps on the fence of the background, use the script and when found at a specific distance, there would change animation to walk on the fence and then jump on the player . In this way he would perform the classic Street Fighter 2 attacks.
I have already edited the animations to walk on the fence, so I just need the script to make it come true ...