☆ベルトアクション作成 Beats of rageスレッド☆ (654レス)
☆ベルトアクション作成 Beats of rageスレッド☆ http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
163: 名前は開発中のものです。 [sage] 2021/06/14(月) 01:20:36.86 ID:f6qMiOOZ @script if(frame==0) { float Vx, Vz, Vy=3, dx=0, dz=0; void self = getlocalvar("self"); int dir = getentityproperty(self, "direction"); float x = getentityproperty(self, "x"); float z = getentityproperty(self, "z"); if (dir==0) { dx = -dx; } setlocalvar("T"+self, findtarget(self)); if( getlocalvar("T"+self) != NULL()){ void target = getlocalvar("T"+self); float Tx = getentityproperty(target, "x"); float Tz = getentityproperty(target, "z"); if(Tx < x) { changeentityproperty(self, "direction", 0); } else { changeentityproperty(self, "direction", 1); } x = x+dx; z = z+dz; Vx = ((Tx-x)/(22*Vy)); Vz = ((Tz-z)/(22*Vy)); } else { Vx = 1 ; if(dir==0){ Vx = -Vx ; } Vz = 0 ; } tossentity(self, Vy, Vx, Vz); } @end_script 他人様のアイデアを偉そうに紹介するのもアレなんですが、近くの敵に誘導ジャンプします。 if(frame==0) { float Vx, Vz, Vy=3, dx=0, dz=0; これで、Frame 0の時、ジャンプ力3(Vy=3)で届く範囲を索敵してジャンプします。 攻撃するかどうかは、Anim中に記述されたコマンド次第で、このままなら、 攻撃可能と設定した近くの対象にジャンプするだけです。 http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/163
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.026s