The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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
Pokemon: New Order
 
Join Date: Nov 2008
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
  #2    
Old September 20th, 2012 (05:01 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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).
__________________
Reply With Quote
  #3    
Old September 21st, 2012 (05:36 AM).
thedudemister's Avatar
thedudemister
Pokemon: New Order
 
Join Date: Nov 2008
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 11:26 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.