Thread: [Question] Repositioning Battle Boxes
View Single Post
  #9    
Old June 29th, 2012 (10:34 AM).
pokemongarnet's Avatar
pokemongarnet pokemongarnet is offline
CAT-BUS!
 
Join Date: Mar 2009
Gender: Male
Posts: 728
Sorry for my minimal scripting knowledge here, but I'm guessing that the shininess code that you're talking about is this... And that @battler.index&1 defines which pokemon it is?

Code:
if @battler.pokemon.isShiny?
      shinyX=206
      shinyX=-6 if (@battler.index&1)==0 # If player's Pokémon
      imagepos=[["Graphics/Pictures/shiny.png",@spritebaseX+shinyX,36,0,0,-1,-1]]
      pbDrawImagePositions(self.bitmap,imagepos)
    end
Or I would put something like this near line 1264 and make it like this:
Code:
# Position of HP gauge
  HPGAUGE_X=115
  HPGAUGE_X=90 if (@battler.index&1)==0 
  HPGAUGE_Y=40
  HPGAUGE_Y=70 if (@battler.index&1)==0
And that would make the HP coordinates for the Player's bar (90,70) While the opponent bar is at (115,70).

Again I have no idea what I'm doing. I've never guessed about something this much in my life.

EDIT: But I guess I would have to define the method battler.index&1 first.
__________________
Reply With Quote