☆ベルトアクション作成 Beats of rageスレッド☆ (654レス)
☆ベルトアクション作成 Beats of rageスレッド☆ http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
377: 名前は開発中のものです。 [sage] 2022/06/04(土) 00:43:37.98 ID:dPRWKu7b #define OBC openborconstant #define GEP getentityproperty #define CEP changeentityproperty #define SLV setlocalvar #define GLV getlocalvar #define GEV getentityvar #define SEV setentityvar #define CLP changelevelproperty #define OBV openborvariant #define COBV changeopenborvariant #define GPP getplayerproperty #define CPP changeplayerproperty #define SGV setglobalvar #define GGV getglobalvar #define self GLV("self") こんな感じにスクリプトで宣言しておく事で http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/377
378: 名前は開発中のものです。 [sage] 2022/06/04(土) 00:50:34.82 ID:dPRWKu7b void rotation() { changedrawmethod(self,"enabled",1); changedrawmethod(self, "rotate", GGV("rotation")); if(GEP(self,"type") == OBC("TYPE_NONE") ) { if(playerkeys(0, 3, "moveup")) { float xpos = openborvariant("xpos"); float x = GEP(self,"x"); CEP(self, "velocity", (cos(GGV("rotation")) * 95)*0.01 , (sin(GGV("rotation")) * 95)*0.01, NULL() ); //Move! if( x > xpos+310 ){ CEP(self, "position", xpos+310, NULL(), NULL());} if( x < xpos+10 ){ CEP(self, "position", xpos+10, NULL(), NULL()); } } else { CEP(self, "velocity",0,0,0); } } } こんな風に略することができるんですが、 浅慮な私には逆にデバグ面倒になってない?と思ったり。思わなかったり。 #define GLV getlocalvar #define self GLV("self") この辺は便利そう。 〜/Data/Scripts/〜.c とか〜.h の中で使います。 http://mevius.5ch.net/test/read.cgi/gamedev/1547405874/378
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
1.823s*