I'm trying to make a character bio screen, which people can go to when they interact with a new character. Said screen I want to be split between a viewport for the character model, which I'd like to have buttons to zoom it in or out (full size images are pretty big), and possibly to change outfits one day too. On the right, it would just be basic text info about the character. I also need an exit button which goes back to where you were (seems simply enough), and possibly another one which will jump you to a small path snippet flashback-style in how the main character relates to said character (this scene is mandatory upon first playing, but would be able to seen again here).
When I do finally get around to editing my main menu, you can do this sort stuff there too, but that's another day.
So right now, I find the viewports to be mostly easy enough to understand. This is what I have so far...
Code: Select all
screen char_bio:
frame:
background "gui/Bio_Back.jpg"
xpos 0
side "c b r":
area (0, 0, 388, 600)
viewport id "vp":
draggable True
add "Characters/Mika/Mika_Base_Full_001.png"
frame:
background "gui/Bio_Back.jpg"
xpadding 10
ypadding 10
xpos 400
side "c r":
area (0, 0, 390, 600)
viewport id "vp2":
draggable True
vbox:
text "{b}Name:{/b} Character Name"
text "{b}Age:{/b} 17"
text "{b}Background:{/b} This is where I do long rambling stuff about a character and their relationship to the main character and all that sort of stuff."
vbar value YScrollValue("vp2") xsize (10)
Things to note: My project file is very old, so some things may not work entirely correctly. Been meaning to ask about such things. My project is 800x600 as a result and I don't have any in-built gui stuff, it would seem. So i'll have to make a graphic for the Vbar at some point (if I even include it). I'm using this test image as my backer, which is 400x600, so half the screen, and I'm using one for each viewport.
So my issues so far are thusly:
1) The character seems to be cropped fine in the viewport after I made it (0, 0, 388, 600). I find it weird the character seems to crop around the borders of the test image I'm using fine, except on the right side, which I fixed by making it 388 instead of 400. The black border around the image is 6 pixels right now, so I found it weird I needed to double that, but whatever. Right now, the character viewport seems to work fine. Except the character is always positioned (before you move it around) off to the right. I'd like it to be centered in the viewport, but using Xcenter on it didn't seem to do anything.
2) My characters are layered, with a base sprite and an expression sprite. I used "add" here, but is it possible to simply "show" a character in the viewport?
3) While I think I could manage an exit button and a jump button. A button for zooming the sprite in or out is something I wasn't sure how/if you could do. It's not necessary, but I think it would be nice.
4) The vbar seems to accept size changes, but positional changes like xpos and such don't seem to work too well on it for some reason.
5) The text in the second viewport seems to be mostly fine as it is. So no help there.
6) I would like to use this screen for multiple characters, and while I could just copy and paste this screen and alter it for each character, I was wondering if it would be better to edit this one for each character somehow.
7) I'll be honest, I have no idea what the "side" thing for frames really do, hahahaha. I tried finding it in the ol' wiki, but all of the info on it was kind of vague. Loose testing didn't give me many results either. So if someone wants to explain those, that'd be nice, but not necessary, hehe.
---
Thanks in advance for any/all assistance.