見出し画像

ティラノスクリプトの吹き出し機能が使いこなせないのでメッセージレイヤに画像を使用して強引に解決した

需要は不明
与保比良莅と辻末杳哉

のスクリプト全部
あってるかと動作の保証ができませんが(-_-;)コピペなどしてご自由にどうぞ
用意する画像はふきだしとグリフとあとはすべて背景です
背景に↓の吹き出し画像を表示させて文字を表示させてます


ふきだし画像×3


グリフ画像×1


※↓なんかリンクになっちゃうので@が全角になってます!
コピペする場合は@を半角にしないとエラーになります!

;ティラノスクリプトサンプルゲーム
*start
[cm]
@clearstack
[clearfix]
[start_keyconfig]

[bg storage="b.jpg" time="100"]

;メニューボタンの表示
;@showmenubutton
;メッセージウィンドウの非表示
@layopt layer=message0 visible=false

;このゲームで登場するキャラクターを宣言
;youya
[chara_new name="youya" storage="youya1.png" jname="杳哉" ]
;キャラクターの表情登録
[chara_face name="youya" face="smile" storage="youya0.png"]
;hirari
[chara_new name="hirari" storage="hirari0.png" jname="比良莅" ]
[chara_face name="hirari" face="dakara" storage="hirari1.png"]

[position layer="message0" left="87" top="42" width="230" height="530" frame="frame.png" opacity="255" vertical="true"]
;文字が表示される領域を調整
[position layer=message0 page=fore margint="60" marginl="100" marginr="100" marginb="60"]
[font color="black"]
[glyph line="nextpage.png" fix="true" left="180" top="520" color="0x8b4513"]

@layopt layer=0 visible=true
@layopt layer=1 visible=true
[nowait]
[position layer="message0" page=fore visible=true]

@clearstack
@playbgm storage=tampi05.ogg

[bg storage="b.jpg" time="100"]
コーヒーの香りは静かだ。
@p

[position layer=message0 page=fore margint="60" marginl="100" marginr="70" marginb="60"]
[bg storage="b2.jpg" time="100"]
おいしいのってきけば、[r]
おいしいよって。
@p

[position layer=message0 page=fore margint="60" marginl="100" marginr="100" marginb="60"]
[bg storage="b3.jpg" time="100"]
そうなの?
@p

[bg storage="b4.jpg" time="100"]
どんな味がするのだろう。
@p

[bg storage="b5.jpg" time="100"]
にがっ!
@p
;メッセージウィンドウの非表示
@layopt layer=message0 visible=false time=10

[bg storage="b1.jpg" time="100"]
@chara_show name=youya time=10 left=620 top=70 time=10
@chara_show name=hirari time=10 left=260 top=230 time=10
[glyph fix="true" line="nextpage.png" left="1100" top="500" color="0x8b4513"]
[position layer="message0" left="950" top="15" width="300" height="560" frame="frame2.png" opacity="255" vertical="true" visible="true"]
@layopt layer=message0 visible=true time=10

#youya
飲んだの?
@p

こうなるよ!



[chara_mod name=youya face="smile" time="10" cross="false"]
どうだった?
@p


;メッセージウィンドウの非表示
@layopt layer=message0 visible=false time=10
@bg storage=bh.jpg time=10
[glyph fix="true" line="nextpage.png" left="140" top="470" color="0x8b4513"]
[position layer="message0" left="45" top="135" width="245" height="400" frame="frame3.png" opacity="255" vertical="true" visible="true"]
[position layer="message0" page=fore visible=true]

#hirari
おいしくない。
@p


こうなるよ!



[chara_mod name=hirari face="dakara" time="10" cross="false"]
だから ……
@p


@chara_hide_all time=10
;メッセージウィンドウの非表示
@layopt layer=message0 visible=false

@bg storage=bl.jpg time=10
@wait time=2000

@bg storage=b.jpg time=10
[glyph fix="true" line="nextpage.png" left="150" top="520" color="0x8b4513"]
[position layer="message0" left="87" top="42" width="230" height="530" frame="frame.png" opacity="255" vertical="true" visible="true" ]
[glyph fix="true" line="nextpage.png" left="180" top="520" color="0x8b4513"]
[position layer="message0" page=fore visible=true]
@image layer=1 storage=hart.png left=1080 top=290
コーヒーの香りは甘い。
@p
@freeimage layer=1
@bg storage=black.jpg time=10
[font color="white"]
[position layer="message0" left="50" top="50" width="1280" height="720" opacity="0" vertical="false"]
[position layer=message0 page=fore margint="150" marginl="8" marginr="8" marginb="200"]
[position layer="message0" page=fore visible=true]

[iscript]
$(".current_span").parent().css("text-align","center");
[endscript]
与保比良莅と辻末杳哉 制作 邪道なドードー
[r]
使用素材 ( 敬称略 )[r]
[r]
背景素材屋さんみにくる[r]
https://quunplant.booth.pm/[r]
TAM Music Factory[r]
https://www.tam-music.com/[r]
@r
@r
クリックでタイトルに戻ります
[endnowait]
@p

@bg storage="tp.jpg" time="10"
[fadeoutbgm time="2000"]
@wait time="4000"

@cm

;メッセージウィンドウの非表示
@layopt layer="message0" visible="false"

@jump storage="title.ks"

この記事が気に入ったらサポートをしてみませんか?