☆ベルトアクション作成 Beats of rageスレッド☆at GAMEDEV☆ベルトアクション作成 Beats of rageスレッド☆ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト378:名前は開発中のものです。 22/06/04 00:50:34.82 dPRWKu7b.net 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 の中で使います。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch