0035Now_loading...774KB
2006/07/21(金) 18:07:13ID:tkLkgxvJキー入力時に変数に何か入れておいて、それが入ってるときはダメージ回避にしたらどうよ。
んで、一定時間たったらその変数はクリアする。
ボタンインスタンスに記入(便宜上5キーとして書いておく)
on(keyPress "5"){
/:defflg = 1;
/:defflgtimer = getTimer();
}
BのMC
if(../a:_x >= _x-8 and _x > ../a:_x){
(中略)
if(/:defflg != 1){
:
(今までの処理)
:
}else{
:
(防御できた時の処理)
:
}
}
メインのループにこれを突っ込んでおく。
if( defflg != 0){
dtimer = 1000-(getTimer()-defflgtimer);
if(dtimer <= 0){
defflg = 0;
}
}