timer_setTimerSpeed

タイマーループの繰り返し間隔を変更

timer_setTimerSpeed p1,p2

p1=0〜 : タイマーループID
p2 : ミリ秒(繰り返しの間隔)の値もしくは変数(1次元配列)

(プラグイン / モジュール : mod_TimerRepeat)

解説

timer_repeatで設定したタイマーループの繰り返し間隔を変更します。

タイマーループIDは、timer_loop後のstatに格納されています。

タイマーループ内では p1 を省略できて、自身のタイマーループを対象とすることができます。

p2:繰り返し間隔を配列指定した際の仕様はtimer_repeatの項目を参照してください。

関連項目

timer_repeatタイマーループの始まりの場所を示す(mod_TimerRepeat)
timer_loopタイマーループの始まりに戻る(mod_TimerRepeat)
timer_killタイマーループを終了させる(mod_TimerRepeat)
timer_initタイマーループ初期化処理(_init_end まで)(mod_TimerRepeat)
timer_deinitタイマーループ後始末処理(mod_TimerRepeat)
timer_breakタイマーループから抜けだしてタイマーも終了させる(mod_TimerRepeat)
timer_continueタイマーループをやり直す(mod_TimerRepeat)
timer_cntタイマーループのカウンター(mod_TimerRepeat)
timer_intervalstimer_repeat内で繰り返し間隔の取得(mod_TimerRepeat)
timer_getTimerTime実行中のタイマーループの経過時間を取得(mod_TimerRepeat)
timer_getTimeミリ秒タイマー(mod_TimerRepeat)
timer_setTimerSpeedタイマーループの繰り返し間隔を変更(mod_TimerRepeat)
timer_easeタイマーループ内で時間変化によるイージング値の取得(mod_TimerRepeat)
geteaseT時間変化によるイージング値を取得(mod_TimerRepeat)
timer_setTimerEngineタイマーの実行タイミングを変更する(オート/マニュアル)(mod_TimerRepeat)
timer_fireタイマーのマニュアル実行時に確認/実行を行う。(mod_TimerRepeat)
uniq_startuniq()のスコープ開始(mod_TimerRepeat)
uniqユニークな変数を定義(mod_TimerRepeat)
uniq_enduniq()のスコープ終了(mod_TimerRepeat)
timer_waiton実行を一定時間中断する(タイマーループ割り込み+oncmd等の割り込みジャンプに対応)(mod_TimerRepeat)
timer_awaiton一定の時間で待つ(タイマーループ割り込み+oncmd等の割り込みジャンプに対応)(mod_TimerRepeat)
timer_stopプログラム中断(タイマーループ割り込みに対応)(mod_TimerRepeat)

サンプル逆引き (2)

10.GIFアニメ表示.hsp#include "../a2d+AlphaLayer.hsp" #include "../mod_Timer..
EX2.ADVゲーム画面(だけ)【アルファレイヤーの中に子アルファレイヤーを作る】.hsp#include "../a2d+AlphaLayer.hsp" #include "../mod_Timer..

情報

プラグイン / モジュールmod_TimerRepeat
バージョン2.5
作成日2024/1/5
著作者MIZUSHIKI
URLhttp://suwa.pupu.jp/
備考mod_TimerRepeat.hspをインクルードすること。
タイプ拡張命令
グループプログラム制御命令
対応環境・Windows 版 HSP