Search found 163 matches

by NocturneLight
Thu Jul 28, 2016 1:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Applying ATL transformations to a textbutton.
Replies: 7
Views: 1139

Re: Applying ATL transformations to a textbutton.

screen movingbuttons(): default bu_right = False if bu_right: textbutton "Test" action NullAction() xalign .8 else: textbutton "Test" action NullAction() xalign .2 key "K_RIGHT" SetScreenVariable("bu_right", True) key "K_LEFT" SetScreenVariable(&quo...
by NocturneLight
Wed Jul 27, 2016 11:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Applying ATL transformations to a textbutton.
Replies: 7
Views: 1139

Re: Applying ATL transformations to a textbutton.

I apologize if it wasn't clear. So let's say I have code, TestATL, that changes the position of something (a button in my case) from one spot to the other. transform TestATL: xalign 0.9 yalign 0.9 And let's also say I have coded a window that contains the button or buttons I want to have move. scree...
by NocturneLight
Sun Jul 24, 2016 11:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Applying ATL transformations to a textbutton.
Replies: 7
Views: 1139

Re: Applying ATL transformations to a textbutton.

How to have a transformation occur to something by pressing a key must be a secret to everybody. Or it's completely obvious to everyone but me.
by NocturneLight
Thu Jul 21, 2016 12:48 am
Forum: Ren'Py Questions and Announcements
Topic: Applying ATL transformations to a textbutton.
Replies: 7
Views: 1139

Applying ATL transformations to a textbutton.

Okay, I can get an ATL to work on a button when it is hovered or unhovered and whatnot. What I'm having trouble doing is getting an ATL to activate on a button when you press a key. How do you do that? So far, I've tried putting the transformation in the window containing the button. I've tried putt...
by NocturneLight
Mon Jul 18, 2016 12:13 am
Forum: Ren'Py Questions and Announcements
Topic: Creating a sort of Date System.
Replies: 3
Views: 544

Re: Creating a sort of Date System.

Ok, so I understood all of that up to

Code: Select all

if mylist[0]==1:
    button **whatever** action None

How does one typically create a button? It doesn't seem to be like creating a window.
by NocturneLight
Sun Jul 17, 2016 5:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a sort of Date System.
Replies: 3
Views: 544

Creating a sort of Date System.

So, after debating with myself about how I want my visual novel to work, I decided on a type of date system. Now, at first I thought this would be easy-peasy. Now, I'm scratching my head. Having a season show on screen at the top is simple enough. What I'm trying to do is have 5 numbers show on the ...
by NocturneLight
Sun Jul 03, 2016 7:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting text from a function to center in a window.
Replies: 2
Views: 381

Re: Getting text from a function to center in a window.

The easiest way is to have each line be a different element. You want to start with changing what you return from the function: a = "{size=+5}" + Month + " " + str(Date) + "{/size}" b = str(DaysRemaining) + " days remaining" return a, b This doesn't affect ho...
by NocturneLight
Sun Jul 03, 2016 6:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Getting text from a function to center in a window.
Replies: 2
Views: 381

Getting text from a function to center in a window.

I was setting up a second window at the top of the screen to show information for the player and succeeded. I've gotten it to say whatever I input in the code. I have one thing that annoys me though. When it displays, it looks like this: Summer 10 5 days remaining As you can see, the text aligns to ...
by NocturneLight
Sat Jul 02, 2016 9:03 pm
Forum: Ren'Py Questions and Announcements
Topic: xalign doesn't seem to be working.
Replies: 2
Views: 1323

Re: xalign doesn't seem to be working.

My best guess is that the window is stretched to be the full width of the screen. You can try adding a xmaximum value to the window like this: screen input(prompt): window: xmaximum 400 #this value is in pixels, you may need to change it to match the size of whatever your dialogue box's actual widt...
by NocturneLight
Sat Jul 02, 2016 8:24 pm
Forum: Ren'Py Questions and Announcements
Topic: xalign doesn't seem to be working.
Replies: 2
Views: 1323

xalign doesn't seem to be working.

I was trying to find a way of centering input text without using NVL mode and came across this code: screen input(prompt): window: xalign 0.5 #Centered Across yalign 0.5 # 75% Down from Top has vbox text prompt: yoffset 5 style "say_dialogue" xoffset 10 input: id "input" style &q...
by NocturneLight
Thu Jun 30, 2016 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a textbox at the top of the screen.
Replies: 5
Views: 438

Re: Creating a textbox at the top of the screen.

Create a whole new screen. screen info(): vbox: text "Today is [day]" And, in the game: show screen info "Now I know what day it is." "I'm tired of the calendar." hide screen info That snippet of code worked. It's easier for me to see with small examples. Thank you!
by NocturneLight
Thu Jun 30, 2016 3:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a textbox at the top of the screen.
Replies: 5
Views: 438

Re: Creating a textbox at the top of the screen.

Well, I put your snippet of code in a test file to see how the textbox would look. It looks fine. My idea was to have the textbox at the top say "7 days remaining." And then in little letters under it say "December 3, 7084". And I think I know a way to do that. What I'm wondering...
by NocturneLight
Thu Jun 30, 2016 1:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a textbox at the top of the screen.
Replies: 5
Views: 438

Creating a textbox at the top of the screen.

Hello. I've been using Ren'Py for like a week now. Knowing only C++ and Java have somehow managed to have gotten me this far. ...And now I'm finally stuck on something. How do I make a textbox appear at the top of the screen? I should also mention that I'm trying to also keep the dialogue box in it'...