• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

I need help with this script

Status
Not open for further replies.

zingzags

PokemonGDX creator
  • 525
    Posts
    16
    Years
    Hey there I am trying to change the way badges are.
    Ex: instead of the long rectangle i want 2 get a square but every time i change the coding it ends up compact, like if they were all mushed together.


    Coding:

    pbDrawTextPositions(overlay,textPositions)
    x=25
    region=pbGetCurrentRegion(0) # Get the current region
    imagePositions=[]
    for i in 0...8
    if $Trainer.badges
    imagePositions[imagePositions.length]=[
    "Graphics/Pictures/Future_badges_Display",x,80,i*96,region*96,96,96 ]
    end
    x+=48
    end





    If you want me to post a picture on how it looks just tell me.

    Fixed the problem Sorry..... LOL i was an idiot

    i had to replace a few regions



    pbDrawTextPositions(overlay,textPositions)
    x=50
    region=pbGetCurrentRegion(0) # Get the current region
    imagePositions=[]
    for i in 0...8
    if $Trainer.badges
    imagePositions[imagePositions.length]=[
    "Graphics/Pictures/Future_badges_Display",x,90,i*96,region*96,96,96 ]
    end
    x+=98
    end
     
    Last edited:
    Status
    Not open for further replies.
    Back
    Top