The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page Are mugshots instead of icons possible?
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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 March 21st, 2013 (2:44 PM). Edited 2 Weeks Ago by BadSamaritan.
BadSamaritan BadSamaritan is offline
Gone Fishin'
 
Join Date: May 2009
Gender: Male
Nature: Rash
Posts: 70
------------------------------------------------------
__________________

Demo coming August 20!
Reply With Quote

Relevant Advertising!

  #2    
Old March 21st, 2013 (5:05 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,144
Where would you use this? At first I thought you meant the party screen (accessible from the pause menu and during battle and so forth), but then you mentioned the "box menu" (which I presume you meant as the party screen) to be something different.

Your idea is an odd shape, by which I mean it wouldn't fit into the standard screen resolution of 512x384.

To strictly answer your question, it's feasible. All it would be is displaying a certain picture (sprite) depending on the species of the Pokémon, which is what all Pokémon icons and battle sprites already do, which is easy. Well, easy enough, anyway. The real question is what else you want to do, which matters in both a technical and aesthetic sense.
__________________
Reply With Quote
  #3    
Old March 22nd, 2013 (2:07 PM).
Pharetra's Avatar
Pharetra Pharetra is offline
zzzz
 
Join Date: Jun 2011
Age: 20
Gender: Male
Posts: 455
Quote:
Originally Posted by Rickyboy View Post
Yes, I mean the party screen, sorry for the confusion. But then I said box menu, to imply that I'd still want to use the normal sized icons for the storage box navigation and the such.

Also, as I mentioned right before the picture, ignore all the other changes like the different directions, health bar sizes and stuff. All it was was a concept I was showing another member of the team, before I even got into essentials and all that. Strictly getting mugshots to work with minor changes to the look of everything, is my primary goal(and unfortunately we have no coder)

So to put it better, my question is how would I go about separating these entities, so that the party menu displays mugshots, but the box displays icons?

Thanks again for any help!
I have little real experience with RGSS and how Essentials is coded, but I'd guess you'd have to change these lines:

Code:
 bitmapFileName=pbResolveBitmap(sprintf("Graphics/Icons/icon%03degg",mail.poke2[0]))
to something like:

Code:
 bitmapFileName=pbResolveBitmap(sprintf("Graphics/Mugshots/mugshot%03degg",mail.poke2[0]))
In which Graphics/Mugshots is the folder containing the mugshots which are named mugshotnumber.png

Haven't tried this out though, so I might be wrong. Seemed very logical to me though.
Reply With Quote
  #4    
Old March 22nd, 2013 (2:56 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
From what I know do exactly like P-Sign said, except depending on the size of your mugshot graphics a couple other things may have to change to change the x/y position of the image so it is where you want it
__________________
Reply With Quote
  #5    
Old March 23rd, 2013 (5:49 PM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,144
Ah, you were talking about the storage screen, and wanting to keep icons in there.

P-Sign was looking at the mail screen, not the party screen.

The line you'd need to change in PokemonParty is this one:
Code:
@pkmnsprite=PokemonIconSprite.new(pokemon,viewport)
What you'd need to do is copy the class PokemonIconSprite (in script section PokemonSprite) and edit the copy to display the mugshot rather than an icon, then change the above-mentioned line of code to use that mugshot class instead. Oh, and make sure the mugshot doesn't jump around every few frames or when selected (basically, pretty much clear its def update). This would be the simplest option, I think.

After that it's just a matter of repositioning the mugshot, which is a simple case of editing these values:
Code:
    @spriteXOffset=28
    @spriteYOffset=0
__________________
Reply With Quote
  #6    
Old March 30th, 2013 (11:06 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,144
Interesting design.

1. self.bitmap.font.size=16, placed directly after the line pbSetSystemFont(self.bitmap). That'll change all text in the Pokémon panels (i.e. level and name). You'll probably need to fiddle with the number a bit.

2. The width of the health bar (I'm just mentioning this for completeness) is the red number in the following line:
Code:
[email protected]==0 ? 0 : (self.hp*96[email protected])
The height of the health bar is determined by the red numbers in the following lines:
Code:
          self.bitmap.fill_rect(@gaugeX,@gaugeY,hpgauge,2,hpcolors[hpzone*2])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+2,hpgauge,4,hpcolors[hpzone*2+1])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+6,hpgauge,2,hpcolors[hpzone*2])
Knowing that the health bar is three separate coloured lines, this should make some sense.
__________________
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:39 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.