Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #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

    Relevant Advertising!

      #2    
    Old September 20th, 2012 (5:01 PM).
    Maruno's Avatar
    Maruno Maruno is offline
    Lead Dev of Pokémon Essentials
       
      Join Date: Jan 2008
      Location: England
      Posts: 5,173
      Quote:
      Originally Posted by thedudemister View Post
      How do you change the x coordinate in the following code for both Pokemon?
      You don't. The name of the method makes it obvious it sets the y-coordinate only.

      The x-coordinate of battler sprites are set in various places in the script section PokeBattle_ActualScene, depending on the circumstances. Search for x coordinate to find two of them, and @sprites["pokemon1"].x to find the third (note that in the third case the sprites start off-screen before sliding in).
      __________________
      Go to the Pokémon Essentials Wiki

      | Downloads | Tutorials | Fangames |
      | All Animations Project |

      Follow me on Twitter: @maruno42


      Reply With Quote
        #3    
      Old September 21st, 2012 (5:36 AM).
      thedudemister's Avatar
      thedudemister thedudemister is offline
      Pokemon: New Order
         
        Join Date: Nov 2008
        Posts: 84
        Quote:
        Originally Posted by Maruno View Post
        You don't. The name of the method makes it obvious it sets the y-coordinate only.

        The x-coordinate of battler sprites are set in various places in the script section PokeBattle_ActualScene, depending on the circumstances. Search for x coordinate to find two of them, and @sprites["pokemon1"].x to find the third (note that in the third case the sprites start off-screen before sliding in).
        Thank you very much. Worked perfectly.

        Anyone know about the full back sprites that are animated?
        Reply With Quote
        Reply
        Quick Reply

        Sponsored Links
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 8:05 AM.