- ◆MUGEN 総合質問スレッド 19◆
971 :名無しさん@お腹いっぱい。[sage]:2014/09/29(月) 20:08:09.82 ID:i6YM9dKP - 質問です。
相手に攻撃をヒットさせると、相手が一定確率であるアイテム(ヘルパー)をドロップするようにしたく、 このようにしました↓ [Statedef -2] [State -2] type = Helper trigger1 = NumHelper(8250) = 0 trigger1 = movehit = 1 ;trigger1 = random < 20 ID = 8250 name = "ITEM" sprpriority = -5 pos = 0,-50 postype = p2 stateno = 8251 helpertype = normal ownpal = 1 IgnoreHitPause = 1
| - ◆MUGEN 総合質問スレッド 19◆
972 :名無しさん@お腹いっぱい。[sage]:2014/09/29(月) 20:08:54.78 ID:i6YM9dKP - ;-----------------
; アイテム 空中 [Statedef 8251] type = A anim = 8251 ctrl = 0 [State 8251] type = VelAdd Trigger1 = 1 y = .2 [State 8251] type = Velset trigger1 = time = 0 x = 1.5 y = -6 ;★ [State 8251] type = ChangeState trigger1 = Vel Y > 0 && Pos Y >= 0 value = 8252
| - ◆MUGEN 総合質問スレッド 19◆
973 :名無しさん@お腹いっぱい。[sage]:2014/09/29(月) 20:09:29.03 ID:i6YM9dKP - ;-----------------
; アイテム 地上 [Statedef 8252] type = S physics = S velset = 0,0 anim = 8251 ctrl = 0 [State 8252] type = PlaySND trigger1 = pos y >= parent,pos y trigger1 = ParentDist X = [-20,20] value = 0,0
| - ◆MUGEN 総合質問スレッド 19◆
974 :名無しさん@お腹いっぱい。[sage]:2014/09/29(月) 20:09:56.29 ID:i6YM9dKP - ↑では実験的に、アイテムが地上にある状態のステート8252でアイテムに触れると
音が鳴り続け、取得実験としては成功なのですが、 アイテムが空中にある状態のステート8251で、1Pがジャンプしている時にアイテムに触れるとゲットできるようにしたいのです。 「;★」に、 [State 8251] type = PlaySND trigger1 = pos y = parent,pos y trigger1 = ParentDist X = [-20,20] value = 0,0 や [State 8251] type = PlaySND trigger1 = pos y >= parent,pos y trigger1 = ParentDist X = [-20,20] value = 0,0 を置き換えても駄目でしたorz どなたか空中でアイテムをゲットできるトリガーを教えていただけたら、とても助かります。 そして連投失礼しました
|
|