RPGツクールMV用プラグイン投稿・告知サイト

#ツクプラ

タイマーをミリ秒まで表示 - NYA_MillSecTimer.js

シェア用テキスト:
▼タイマーをミリ秒まで表示(にゃたま様作) - NYA_MillSecTimer.js
https://plugin.fungamemake.com/archives/18747
ツクール標準のカウントダウンタイマーの表示をミリ秒表示に変える

ふりがな:たいまーをみりびょうまでひょうじ

機能概要: ツクール標準のカウントダウンタイマーの表示をミリ秒表示に変える

利用規約(ライセンス): MITライセンス

作者:にゃたま

作者サイト:https://x.com/nyatama777

直接ダウンロード:Zipファイル

ファイル名:NYA_MillSecTimer.js

プラグインのヘルプ:

/*:
 * @plugindesc v1.4.0 ミリ秒に変更するタイマー関係のプラグイン
 * @author にゃたま
 *
 * @param FontFace
 * @desc タイマー文字列のフォント名です(指定する場合のみ)
 * fontsフォルダに入れて下さい。「.ttf」以外のフォント名のみ
 *
 * @param FontSize
 * @desc フォントサイズ
 * Default: 52
 * @default 52
 *
 * @param FontColor
 * @desc フォント色 Default: #ffffff
 * 例(黒:#000000 白:#ffffff 赤:#ff0000)
 * @default  #ffffff
 *
 * @param Width
 * @desc 横幅
 * Default: 200
 * @default 200
 *
 * @param Height
 * @desc 縦幅
 * Default: 68
 * @default 68
 *
 * @param Align
 * @desc タイマーの整列設定 Default: center
 * 例(左揃え:left 中央揃え:center 右揃え:right)
 * @default center
 *
 * @param Position X
 * @desc X位置
 * Default: Graphics.width - this.bitmap.width - 10
 * @default Graphics.width - this.bitmap.width - 10
 *
 * @param Position Y
 * @desc Y位置
 * Default: 0
 * @default 0
 *
 * @param --デバッグ用--
 *
 * @param BackColor
 * @desc 背景色設定(主にデバッグ用)Default: 
 * 例> 黒:#000000 白:#ffffff 赤:#ff0000 or rgb(255, 0, 0)
 * @default 
 *
 * @param TimerTitle BackColor
 * @desc タイマータイトル背景色設定(主にデバッグ用)
 * 例> 黒:#000000 白:#ffffff 赤:#ff0000 or rgb(255, 0, 0)
 * Default: 
 * @default 
 * 
 * @param --タイマータイトル設定--
 *
 * @param TimerTitle Enable
 * @desc タイマーにタイトルを設定する
 * Default: false
 * @type boolean
 * @default false
 *
 * @param TimerTitle Name
 * @desc タイマータイトルのタイトル名
 * Default: TIME
 * @default  TIME
 *
 * @param TimerTitle FontFace
 * @desc タイマータイトル文字列のフォント名です(指定する場合のみ)
 * fontsフォルダに入れて下さい。「.ttf」以外のフォント名のみ
 *
 * @param TimerTitle FontSize
 * @desc タイマータイトルのフォントサイズ
 * Default: 25
 * @default 25
 *
 * @param TimerTitle FontColor
 * @desc タイマータイトルの文字色 Default: #ffffff
 * 例(黒:#000000 白:#ffffff 赤:#ff0000)
 * @default  #ffffff
 *
 * @param TimerTitle Width
 * @desc タイマータイトルの横幅
 * Default: 200
 * @default 200
 *
 * @param TimerTitle Height
 * @desc タイマータイトルの縦幅
 * Default: 30
 * @default 30
 *
 * @param TimerTitle Align
 * @desc タイマータイトルの整列設定 Default: left
 * 例(左揃え:left 中央揃え:center 右揃え:right)
 * @default left
 *
 * @param --開始アニメーション設定--
 *
 * @param TimerStartAnime Enable
 * @desc タイマーのスタート位置を決めてアニメーションする
 * Default: false
 * @type boolean
 * @default false
 *
 * @param StartWaitFrame
 * @desc タイマー開始位置で維持させるフレーム数
 * Default: 180
 * @default 180
 *
 * @param StartToEndFrame
 * @desc タイマー開始位置〜通常位置にアニメーションさせるフレーム数
 * Default: 180
 * @default 180
 *
 * @param StartPosition X
 * @desc タイマーのスタートするX座標
 * Default: Graphics.width / 2 - this.bitmap.width / 2
 * @default Graphics.width / 2 - this.bitmap.width / 2
 *
 * @param StartPosition Y
 * @desc タイマーのスタートするY座標
 * Default: Graphics.height / 2 - this.bitmap.height / 2
 * @default Graphics.height / 2 - this.bitmap.height / 2
 *
 *
 * @help
 * 概要:
 * ツクール標準のカウントダウンタイマーの表示をミリ秒表示に変えるプラグインです。
 *
 *
 * プラグインコマンド:
 *   NYA_MillSecTimer add 10                   # タイマーを指定秒数増加させる
 *   NYA_MillSecTimer sub 10                   # タイマーを指定秒数減少させる
 *   NYA_MillSecTimer pause                    # タイマーを一時停止させる
 *   NYA_MillSecTimer resume                   # タイマーを再開させる
 *   NYA_MillSecTimer posSet 340 250           # タイマーの表示位置を変更する(x位置,y位置)
 *   NYA_MillSecTimer posSet                   # タイマーの表示位置の引数がないとリセットになります
 *   NYA_MillSecTimer posReset                 # タイマーの表示位置をリセットします
 *   NYA_MillSecTimer colorSet #ffffff         # タイマーフォントの色を設定します
 *   NYA_MillSecTimer colorReset               # タイマーフォントの色をリセットします
 *   NYA_MillSecTimer fontSizeSet #ffffff      # タイマーフォントのサイズを設定します
 *   NYA_MillSecTimer fontSizeReset            # タイマーフォントのサイズをリセットします
 *   NYA_MillSecTimer titleColorSet #ffffff    # タイトルフォントの色を設定します
 *   NYA_MillSecTimer titleColorReset          # タイトルフォントの色をリセットします
 *   NYA_MillSecTimer titleFontSizeSet #ffffff # タイトルフォントのサイズを設定します
 *   NYA_MillSecTimer titleFontSizeReset       # タイトルフォントのサイズをリセットします
 *   NYA_MillSecTimer hide                     # タイマーを非表示にします
 *   NYA_MillSecTimer show                     # タイマーを表示します
 *   NYA_MillSecTimer countUp                  # タイマーをカウントアップさせます
 *   NYA_MillSecTimer countDown                # タイマーをカウントダウンさせます
 *   NYA_MillSecTimer effect flickr 1          # タイマーのフリッカーエフェクトを設定します
 *                                             # (第1引数:明滅強度) [1:強設定]【指定しない場合:1】
 *   NYA_MillSecTimer effect fade 5 128        # タイマーのフェードエフェクトを設定します
 *                                             # (第1引数:フェードの速度) [1:遅い]【指定しない場合:5】
 *                                             # (第2引数:フェードアウト最小値) [0:強設定]【指定しない場合:128】
 *   NYA_MillSecTimer effect blink 10          # タイマーのブリンクエフェクトを設定します
 *                                             # (第1引数:点滅強度) [1:点滅速度早い]【指定しない場合:10】
 *   NYA_MillSecTimer effect off               # タイマーのエフェクトを無効にします
 *   NYA_MillSecTimer titleName 制限時間        # タイマータイトルの名前を変更します
 *  
 * ※このプラグインでは、以下を書き換えていますので、本体アップデートや競合に注意してください。
 *    
 *    Sprite_Timer.prototype.createBitmap
 *    Sprite_Timer.prototype.updateBitmap
 *    Sprite_Timer.prototype.updatePosition
 *    Sprite_Timer.prototype.timerText
 *    Sprite_Timer.prototype.redraw
 *    Game_Timer.prototype.initialize
 *    Game_Timer.prototype.start
 *    Game_Timer.prototype.update
 *    Game_Interpreter.prototype.command111
 *    
 * 
 */

スポンサードリンク

スポンサードリンク

Copyright© #ツクプラ , 2025 All Rights Reserved.