Name input frame

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Name input frame

#1 Post by isobellesophia »

Hello everyone.

I want to make a name input framebox in the center of the screen, but sadly my old script has a code of it and deleted for some reasons.

Like this for ex

_____________________
l type your name. l
l. l
l _____________ l
l. ____________________

sry for that, i am bad at ascii art.

Thanks for who can help.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Name input frame

#2 Post by SuperbowserX »

Maybe you could make a really quick mockup in Microsoft Paint or a drawing software of what you're trying to do?

If you want to reposition the input box, I found this old thread viewtopic.php?t=22448

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Name input frame

#3 Post by isobellesophia »

sketch-1590151378185.png
This one, is what i wanted to do.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Name input frame

#4 Post by gas »

Code: Select all

default my_name = ""

screen input_name():
    frame:
        xfill None
        yfill None
        xalign 0.5
        yalign 0.5
        vbox:
            text "Type your Name:" xalign 0.5
            input value VariableInputValue('my_name', returnable=True) xalign 0.5
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Name input frame

#5 Post by isobellesophia »

Thank you for this code gas, i'll try this.
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: Google [Bot], MisterPinetree, Ocelot