• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Changing location of backgrounds

Arkadious

Developer of Fragmentum
  • 46
    Posts
    9
    Years
    Hi everyone,

    I was wondering how to change the default location of backgrounds as I'm trying to categorise the assets in the Pictures folder so that it looks in the designated folder rather than just the Picture folder as it comes up with a black background otherwise (my coding knowledge with Ruby is not the best).

    Pictures are included.
     

    Attachments

    • [PokeCommunity.com] Changing location of backgrounds
      Capture.PNG
      15.7 KB · Views: 11
    • [PokeCommunity.com] Changing location of backgrounds
      Capture(2).PNG
      13.7 KB · Views: 11
    • [PokeCommunity.com] Changing location of backgrounds
      Capture(3).PNG
      4.9 KB · Views: 10
    • [PokeCommunity.com] Changing location of backgrounds
      Capture(4).PNG
      3.8 KB · Views: 7
    • [PokeCommunity.com] Changing location of backgrounds
      Capture(5).PNG
      3.6 KB · Views: 5
    Last edited by a moderator:
    So, bear with me since I haven't done this before. But looking up the script addBackgroundPlane, it substitutes the third value to search for a file starting with the pictures folder. So, instead of, say, "trainercardbg", use "(Folder)/trainercardbg"

    Cool. I'll test it out and post if anything happens.

    Edit (1/01/2017 at 3:04pm): Yep! Just adding in the foldername/ thing worked perfectly. Thanks. :)
     
    Last edited:
    Back
    Top