☆ベルトアクション作成 Beats of rageスレッド☆ (656レス)
上
下
前
次
1-
新
433
(1)
: 2022/09/12(月)00:32
ID:62TYiDdQ(1)
調
AA×
[240|
320
|
480
|
600
|
100%
|
JPG
|
べ
|
レス栞
|
レス消
]
433: [sage] 2022/09/12(月) 00:32:14.53 ID:62TYiDdQ void spawnentitybyallenemy(void vName, float fX, float fY, float fZ) { void vEnt; //Entity placeholder. int iType , iValid, iDead, iECnt, iEnt; //Entity counter. int Tx = 0, Ty = 0, Tz = 0, Tdir = 0; void spawned = 0; void self = getlocalvar("self"); iECnt = openborvariant("ent_max"); //Get current entity count. for(iEnt=0; iEnt<iECnt; iEnt++) //Loop entity collection. { vEnt = getentity(iEnt); //Get entity handle. if(vEnt) //Valid handle? { iValid = getentityproperty(vEnt, "exists"); //Get exists confirmation. iDead = getentityproperty(vEnt, "dead"); //Get death status. iType = getentityproperty(vEnt, "type"); //Get type. if(vEnt && iValid && !iDead //Alive? && iType == openborconstant("TYPE_ENEMY")) //Enemy type? { Tx = getentityproperty(vEnt, "x"); Ty = getentityproperty(vEnt, "a"); Tz = getentityproperty(vEnt, "z"); Tdir = getentityproperty(vEnt, "direction"); if ( Tdir == 0 ) { spawned = spawnchildentityforparent(vName, self, (Tx+fX), (Ty+fY), (Tz+fZ), 0); changeentityproperty(spawned, "direction",1); } else { fX = -fX; spawned = spawnchildentityforparent(vName, self, (Tx+fX), (Ty+fY), (Tz+fZ), 0); changeentityproperty(spawned, "direction",0); } } } } } 画面上のHealth 0 以上の全ての敵の座標を取得して、その座標にEntityを出現させるスクリプト 動画のSpecial で全ての敵に物が降って来る演出に使っています。 http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/433
画面上の 以上の全ての敵の座標を取得してその座標にを出現させるスクリプト 動画の で全ての敵に物が降って来る演出に使っています
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 223 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
ぬこの手
ぬこTOP
0.044s