
【ティラノビルダー】キャラ・イメージの重なりを「最背面へ」「最背面へ」みたいに指定できるようになるプラグインの導入方法
ティラノスクリプト用プラグインである『キャラ・イメージの重なりを「最背面へ」「最背面へ」みたいに指定できるようになるプラグイン』を、ティラノビルダーで使用する方法を解説します。
①ダウンロード
上記のページから、プラグインをダウンロードします。
さらに、ダウンロードしたプラグインを、すべて展開(お使いのソフトによっては解凍)します。

・depth_modフォルダ
・readme.txtファイル
が入っています。
②depth_modフォルダの配置

ティラノビルダーを起動し、プロジェクト一覧ページの左側にあるアイコンをクリックします。

dataフォルダから、othersフォルダをクリックします。

pluginフォルダをクリックします。

フォルダは空の状態です。

先程ダウンロードしたdepth_modフォルダを入れます。
③plugin.ksファイルに、コードを追加する

dataフォルダから、scenarioフォルダをクリックします。

systemフォルダをクリックします。

plugin.ksにコードを記述します。
右クリックし、プログラムから開くをクリックし、メモ帳を選択します。

plugin.ksをメモ帳で開くと、[return]と書かれています。

[plugin name="depth_mod"]
上記のコードを追加し、上書き保存します。
これで、プラグインの導入は完了です。
④プラグインの使用方法
■使用する画像をfgimageフォルダに入れます。

dataフォルダから、fgimageフォルダをクリックします。

fgimageフォルダに画像を追加します。

myimag1.pngとmyimag2.pngを追加しました。
myimag1.png

myimag2.png

■次に、キャラクターの登録を行います。

キャラクター管理画面を開き、キャラクターを登録します。
今回はキャラクター名をakaneとしました。
■キャラクターと画像の表示

[image layer=0 storage=myimg1.png name="myimg1" left="40" top="100"]
[image layer=0 storage=myimg2.png name="myimg2" left="740" top="100"]
[chara_show layer=0 name="akane" top="100"]
ティラノスクリプトコンポーネントに上記のコードを貼り付けます。
■ キャラクターを最前面に移動する場合

[depth_mod layer=0 name="akane" depth="front" ]
■ キャラクターを最背面に移動する場合

[depth_mod layer=0 name="akane" depth="back" ]
■画像を最前面に移動する場合

[depth_mod layer=0 name="myimg2" depth="front" ]
以上で解説を終わります。