View Single Post
  #1    
Old September 20th, 2012 (12:06 PM).
thedudemister's Avatar
thedudemister thedudemister is offline
Pokemon: New Order
     
    Join Date: Nov 2008
    Posts: 84
    I was wondering if someone could help me with these scripts. I need the Pokemon positions to change. I know that by changing what comes after Graphics.height changes the Y coordinate (I tried to add Graphics.width but it did not work). How do you change the x coordinate in the following code for both Pokemon?
    Code:
    def adjustBattleSpriteYEx(metrics,sprite,species,index)
      ret=0
      if index==1 || index==3   # Foe Pokémon
        ret=(index==1) ? -14 : -30
        ret+=(metrics[1][species] || 0)*2 # enemy Y
        ret-=(metrics[2][species] || 0)*2 # altitude
        halfY=(sprite.bitmap &&
           !sprite.bitmap.disposed?) ? sprite.bitmap.height/2 : 64
        ret+=(64-halfY)
        ret+=((Graphics.height-350)*3/4).floor              # Adjust for screen size
      else                      # Player's Pokémon
        ret=(index==0) ? 96 : 112
        ret+=16
        ret+=(metrics[0][species] || 0)*2
        spriteheight=(sprite.bitmap && 
           !sprite.bitmap.disposed?) ? sprite.bitmap.height : 128
        ret+=(128-spriteheight)
        ret+=(Graphics.height-350)                          # Adjust for screen size
      end
      return ret
    end
    Also I am in need of animated back sprites like to ones from " Ultimate BW Pack for Pokemon Essentials". However I need full animated backs, I don't want the ones that are cut in half. Anyone know where I can find them?

    Thank you,
    Reply With Quote