Control over the Parallax (Background)

Discussion in 'RGSS3 Script Requests' started by Wavelength, Sep 2, 2015.

  1. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,052
    Likes Received:
    3,385
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    Does anyone know of a script that can be used to enable greater in-game control over the way the Parallax Background scrolls?

    I've enabled attribute accessors for parallax_sx and parallax_sy in my game so that I can, for example, set the speed of the parallax scroll to a fixed value via Script call if the player does something specific.  However, there are more complex things that I want to do, such as continually update the speed/direction of the parallax based on a certain event's movement.  Is there anything out there right now that will make my job any easier? :)

    Thanks for any help, advice, or links you can give me!
     
    #1
  2. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    178
    Location:
    La La Land
    First Language:
    Meowish
    $game_map.events[id].move_speed is what you are looking for. id is the id of the event in the map.

    i don't remember if @move_speed for event is already attributed for reading or not, but since you know how to do it, it should be under Game_Event class or Game_CharacterBase, its super class.
     
    Last edited by a moderator: Sep 5, 2015
    #2

Share This Page