Getting bitmap width and height of leading party member? - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Code Support (https://www.save-point.org/forum-20.html) +--- Thread: Getting bitmap width and height of leading party member? (/thread-3523.html) |
Getting bitmap width and height of leading party member? - PK8 - 05-29-2011 Hey there, not sure if anyone can help me with this. I'm rusty at scripting, and normally I would've been able to do this within mere minutes but I don't remember some of the variables. How do I get the bitmap width and height of the leading party member? Edit (5/28/11 at 7:54pm): I forgot to mention "character sprites." Edit 2 (5/28/11 at 7:58pm): I was focusing solely on RPG Maker XP when I posted this, but feel free to provide an answer for VX as well. I know VX has to be a lot more difficult since you have to deal with two types of charactersets: One involving a character in a set, the other involving eight in a set. RE: Getting bitmap width and height of leading party member? - DerVVulfman - 05-29-2011 Sent ya the code. Hope it works. RE: Getting bitmap width and height of leading party member? - PK8 - 05-29-2011 You should post it here, in case anyone else is feeling curious. Thanks a ton! RE: Getting bitmap width and height of leading party member? - DerVVulfman - 05-29-2011 Didn't save it. But it was practically a rip from Sprite_Character RE: Getting bitmap width and height of leading party member? - kyonides - 08-21-2012 First of all I would like to say that possibly you already know the answer at some point in the last 15 months but I don't care about this. Perhaps someone else doesn't have a clue about how to get that like you did long time ago. In XP the common width is 32 px and the height should be 48 px (whenever they are displayed on screen). Now my question should be if you're currently using characters that are bigger than default RTP hero characters like those nasty monsters already included there. RE: Getting bitmap width and height of leading party member? - Kain Nobel - 08-27-2012 You'll have to call the character bitmap, then divide their width and height by 4. Code: bitmap = RPG::Cache.character(name, hue) |