DD Tokki
Well-known member
I'm making a defense system by making blues (proto man) this time.

The code is below.
com u freespecial5
anim freespecial5
loop 0
delay 30
offset 8 23
bbox 1 0 19 24
@cmd block 1
frame data/sprites/chara/blues/block-01.gif
In this way, I wrote a script to press the command upward to bring out the defense action.
However, as you can see in the screenshot, the result was that the missile penetrated.
What I expected was that the defense would be successful in freespecial5 with the script applied.
Maybe something went wrong?

The code is below.
Code:
void block(int Flag)
{
void self = getlocalvar("self");
if(Flag == 1)
{
changeentityproperty(self, "aiflag", "blocking", 1);
changeentityproperty(self, "takeaction", "common_block");
} else {
changeentityproperty(self, "aiflag", "blocking", 0);
}
}
com u freespecial5
anim freespecial5
loop 0
delay 30
offset 8 23
bbox 1 0 19 24
@cmd block 1
frame data/sprites/chara/blues/block-01.gif
In this way, I wrote a script to press the command upward to bring out the defense action.
However, as you can see in the screenshot, the result was that the missile penetrated.
What I expected was that the defense would be successful in freespecial5 with the script applied.
Maybe something went wrong?
