Slower Scrolling Text

Discussion in 'Javascript/Plugin Support' started by Tobbx, Oct 29, 2015.

    Tags:
  1. Tobbx

    Tobbx Veteran Veteran

    Messages:
    45
    Likes Received:
    25
    Location:
    Sweden
    First Language:
    Swedish
    $gameMessage.setScroll(scrolling_speed, no_fast_forward);$gameMessage.add("Text");With that script call i have to type the scrolling text there to. I want to use the main editors Show Scrolling Text Command. But still set the speed to slower than one. Can this be done with a script call or do i have to change the core script??? In either case help would be appreciated. 
     
    Last edited by a moderator: Oct 29, 2015
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,714
    Likes Received:
    11,421
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
     
    #2
  3. NoInkling

    NoInkling Veteran Veteran

    Messages:
    39
    Likes Received:
    9
    First Language:
    English
    I think you'd have to modify and overwrite the `Game_Interpreter.prototype.command105` method, because it contains this line:

    $gameMessage.setScroll(this._params[0], this._params[1]);It would be pretty easy to make a plugin that checks for a plugin command in your event, then runs a modified version of the method where `this._params[0]` above is replaced with whatever you specified in the command.

    Edit:

    Here you go, I made it myself:

    https://gist.github.com/noinkling/7b4d01831a27f4caadd7

    Read the help text and let me know if you run into any bugs.

    Your event will look something like this:

    * Plugin Command : TextScrollSpeed 0.8* Text(S) : Speed 1 (or whatever, it doesn't matter) : Hello I am : some scrolling textIf you use a value like 0.1 it takes like 15 seconds just to start appearing on the screen. You can go super fast as well, for a comedy effect or something.
     
    Last edited by a moderator: Oct 29, 2015
    #3
  4. Tobbx

    Tobbx Veteran Veteran

    Messages:
    45
    Likes Received:
    25
    Location:
    Sweden
    First Language:
    Swedish
    Thank you very much! Just what i need. 
     
    #4
    NoInkling likes this.
  5. NoInkling

    NoInkling Veteran Veteran

    Messages:
    39
    Likes Received:
    9
    First Language:
    English
    #5

Share This Page