RPG Maker Times

Smile Game Builder and RPG Maker Tutorials, Plugins, Resources, Windowskins

Change Parallax Scriptlet

One of many features disabled in RMVX is the ability to change the Parallaxes, which was available in RMXP (and RM2K/3 before that) directly from the Event Commands. Parallaxes are graphics (usually of clouds or distant landscapes) that can scroll behind a map. While it is possible to set the parallax graphic in the map settings only, this "one parallax per map" rule is rather annoying.

As I start learning RGSS, the scripting language used by RMXP and RMVX, and familiarize myself with its nuances, being able to find workarounds and tweaks is half the fun.

I created a simple but effective (and certainly not perfect) method for changing parallaxes is with a small script in the form of the Change Parallax Scriptlet.

4 thoughts on “Change Parallax Scriptlet

  1. Hello, Tried to use your script, but I got this error:

    Script: game interpreter line 1411 argument error occurred.

    wrong number of arguments (1 for 5)

    Copy of 1411
    end
    #————————————————————————–
    # * Script
    #————————————————————————–
    def command_355
    script = @list[@index].parameters[0] + “n”
    while next_event_code == 655
    @index += 1
    script += @list[@index].parameters[0] + “n”
    end
    eval(script)
    end
    end

  2. I tested this and it works fine, so it would appear that another script is conflicting. Line 1411 (according to RMVX) is “Change EXP”.

    The above “command_355” doesn’t appear to be correct. Search for other references from other scripts that may directly modify this command.

    This is directly from RMVX:

    def command_355
    script = @list[@index].parameters[0] + “n”

    loop do
    if @list[@index+1].code == 655

    script += @list[@index+1].parameters[0] + “n

    2

    else

    break

    end

    @index += 1

    end

    eval(script)

    return true

    end

Categories

Archives

Hi-Tex House Pack Vol. 1

For Smile Game Builder

The Hi-Tex House Pack Vol. 1 contains 297 assets: 284 house wall terrains and 13 models. Get your copy for only $5!

Sponsored Ad

Sponsored Ad


Follow me on Twitter

© 2008-2018, Companion Wulf. All Rights Reserved.