I decided to put a border around PC & NPC faces to make them stand out a little during conversation, they are still maintaining the default pixel size though. This is what happened when I went into battle. I can't quite figure out how to resize the actor face box. It just seems squished?
http://i1301.photobucket.com/albums/ag107/ArchieTheAltimaGXE/NewBitmapImage_zps071e361f.png
SCRIPT : http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/
Any suggestions? I'd rather not scrap using Yanfly's Engine if it isn't absolutely required. I've poked around the script and I can't seem to find anything that suggests a resizing of the actor faces.
Resizing Issue - Yanfly Battle Engine Ace
● ARCHIVED · READ-ONLY
-
-
Moving. Next time, just report the post and whatever mod has access who comes along first will take care of it for you
You actually resized the image? I suspect that's the problem. Faces are 96x96 - if you make them bigger than that, you also need to modify the script. And making the image bigger so you can have a face of the original size plus the border around the outside is still making them bigger.
I would have just used the original image and drawn the boxes around the outside few pixels. -
No, images are still 96x96 as I drew the border in on the inside of the image to make sure that everything remained constant. I dislike unnecessary code editing.
The project has been resized to 640x480 which might a partial culprit to the issues I'm having across the board here but the majority are fixed by resizing back to 544x416. I've fixed a few of them with minor script edits.
This little glitch remains though. No matter what I do, it squishes the FaceSet. -
How many pixels out do you think it is?
You could try changing this line:
draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)to remove the +2 from each value. Remember where it is, though, so you can put it back in if it doesn't make a difference.
There's also a BATTLESTATUS_CENTER_FACES constant that's set to false in that script. You could try changing it to true (or if you've already changed it to true, change it back to false) to see what effect that has.
It also does a complete overwrite of the draw_face method, and appears to be chopping off some pixels. You could try finding that method and just commenting it all out, leaving it go back to the default method instead. In fact, I suspect this might be the culprit, so would suggest attempting this first. -
Okay, little bit of progress there. Adjusting the DRAW_ACTOR_FACE line appears to adjust the location of the image by the X and Y variables. Useful to a degree if I want to tweak where it is located. Which is a possibility, thank you. The other line you suggested seemed to have no effect or I wasn't adjusting the right variables.
#-------------------------------------------------------------------------- # overwrite method: draw_face #-------------------------------------------------------------------------- def draw_face(face_name, face_index, dx, dy, enabled = true) bitmap = Cache.face(face_name) fx = [(96 - item_rect(0).width + 1) / 2, 0].max fy = face_index / 4 * 96 + 2 fw = [item_rect(0).width - 4, 92].min rect = Rect.new(fx, fy, fw, 92) rect = Rect.new(face_index % 4 * 96 + fx, fy, fw, 92) contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha) bitmap.dispose endThis one seems to have some association with the Actor_Face as well.
#-------------------------------------------------------------------------- # overwrite method: item_rect #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = contents.width / $game_party.max_battle_members rect.height = contents.height rect.x = index * rect.width if YEA::BATTLE::BATTLESTATUS_CENTER_FACES rect.x += (contents.width - $game_party.members.size * rect.width) / 2 end rect.y = 0 return rect endAt this point, if I can't figure out a way to resize it, I might just opt to remove the faces all together. I'm sure most RPG gamers can associate a name to an actor and not need their face shown to remind them who is selected.
EDIT: Decided to remove the faces for now since they are not really needed for the battle scene. That said, I'm trying to figure out how to make the HP, MP, and TP bars THICKER (not wider) and center the HP/MP/TP and Numericals in the bar. I've been tinkering with code for about 2 hours now and I've managed to do everything BUT what I need to do. -.-''
EDIT #2: And I figured out how to adjust the location of the drawn text for HP/MP/TP & Values, not sure on how to make the bars thicker though.
EDIT #3: Okay, I'm stupid. That option was right at the beginning of the script. /facepalm. That said, thread still open hoping to figure out this mess with the resizing of the actor faces.