HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2017
0126
かゆぽん。gcopyの大きさ指定について3解決


かゆぽん。

リンク

2017/1/26(Thu) 17:34:32|NO.78072

長い文章をスクロールして全文表示されたらループするプログラムを書きたいのですが


str_roll_x = 100 str_roll_passage = "あいうえお" str_roll_speed = 1 str_roll_bufID = 5 buffer str_roll_bufID,str_roll_x,100, mes str_roll_passage buffer str_roll_bufID,str_roll_x,ginfo_mesy, gsel 0 repeat repeat ginfo_mesx/str_roll_speed+1 cls pos 0-str_roll_speed*cnt,0 mes str_roll_passage gcopy str_roll_bufID,0,0,str_roll_x,ginfo_mesy wait 3 loop repeat str_roll_x/str_roll_speed cls pos str_roll_x-str_roll_speed*cnt mes str_roll_passage gcopy str_roll_bufID,0,0,str_roll_x,ginfo_mesy wait 3 loop wait 100 loop
このようにすると、表示するxサイズが指定できず全文表示されてしまいます
なにか気づいたことがありましたら教えてください



この記事に返信する


26℃

リンク

2017/1/26(Thu) 18:02:13|NO.78073


str_roll_x = 100 str_roll_passage = "あいうえお" str_roll_speed = 1 str_roll_bufID = 5 buffer str_roll_bufID,str_roll_x,100, mes str_roll_passage mesw=ginfo_mesx;文字列の幅 gsel 0 repeat cls pos 0,0 gcopy str_roll_bufID,cnt\mesw,0,str_roll_x,ginfo_mesy pos mesw-(cnt\mesw),0 gcopy str_roll_bufID,0,0,str_roll_x,ginfo_mesy wait 3 loop
こういうのでいいのかな演算子の除算
\
使うのがポイント



かゆぽん。

リンク

2017/1/26(Thu) 20:00:24|NO.78077

ありがとうござます!!



かゆぽん。

リンク

2017/1/26(Thu) 21:23:55|NO.78079

いろいろ考えた結果こんな形で収まりました
返信活用できなくてすみませんm(_ _)m


buffer str_roll_bufID,1000,1000, font str_roll_font,str_roll_size,str_roll_bold mes str_roll_passage str_roll_mesx=ginfo_mesx str_roll_mesy=ginfo_mesy buffer str_roll_bufID,str_roll_x,str_roll_mesy, gsel 0 pos 0,100 repeat repeat str_roll_mesx/str_roll_speed+1 gsel str_roll_bufID cls font str_roll_font,str_roll_size,str_roll_bold pos 0-(str_roll_speed*cnt),0 mes str_roll_passage gsel 0 gcopy str_roll_bufID,0,0,str_roll_x,str_roll_mesy wait 3 loop repeat str_roll_x/str_roll_speed gsel str_roll_bufID cls font str_roll_font,str_roll_size,str_roll_bold pos str_roll_x-(str_roll_speed)*cnt mes str_roll_passage gsel 0 gcopy str_roll_bufID,0,0,str_roll_x,str_roll_mesy wait 3 loop wait 100 loop



ONION software Copyright 1997-2023(c) All rights reserved.