Search found 310 matches

by Nanahs
Tue Feb 12, 2019 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How can I use it as an "action"?
Replies: 6
Views: 619

[Solved] How can I use it as an "action"?

If "Coin" starts with 0. Like this: $ Coins=0 I wanted a button that would increase the value of coins when being clicked. Like: $ Coins += 1 How can I make an "action" that would do that? I wanted to use an image of coins to create an imagebutton with that "action". ht...
by Nanahs
Tue Feb 12, 2019 11:08 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I place this text in the write place?
Replies: 2
Views: 310

Re: How do I place this text in the write place?

In a screen like this: screen text1: text "TEXT HERE" size 20 xpos 10 ypos 413 It looks like: https://i.imgur.com/Yz16zQm.png I wanted some "limit space" between the text and the screen corners. https://i.imgur.com/ZHg7WZE.png Thanks. Try this screen text1: frame: xpadding 10 yp...
by Nanahs
Mon Feb 11, 2019 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I place this text in the write place?
Replies: 2
Views: 310

[Solved] How do I place this text in the write place?

In a screen like this:

Code: Select all

screen text1:
    text "TEXT HERE" size 20 xpos 10 ypos 413  
It looks like:

Image

I wanted some "limit space" between the text and the screen corners.

Image

Thanks.
by Nanahs
Sun Feb 10, 2019 4:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Simulating "like button"/daily messages?
Replies: 0
Views: 196

Simulating "like button"/daily messages?

In my game, in certain days the player will receive a message. And I'd like to add a "like" button to it. For example, the message would be like: https://i.imgur.com/aPMaOKQ.png And when you click in the heart, it changes to: https://i.imgur.com/DefP0gX.png If you click the heart again, it...
by Nanahs
Sat Feb 09, 2019 7:02 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Does anyone know if there's a code/tutorial like this? Mini-game idea?
Replies: 2
Views: 600

Re: Does anyone know if there's a code/tutorial like this? Mini-game idea?

You can define each recipe as an object that takes a list of ingredient names. Each ingredient is then placed into a dictionary so you can track if it's been added or not: class Recipe(store.object): def __init__(self, ingredients): self.ingredients = {i: False for i in ingredients} def add_ingredi...
by Nanahs
Sat Feb 09, 2019 3:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Does anyone know if there's a code/tutorial like this? Mini-game idea?
Replies: 2
Views: 600

[Solved] Does anyone know if there's a code/tutorial like this? Mini-game idea?

I was thinking of adding a cooking mini-game on my game. The idea is having a kitchen as a background (kind of abvious hah), and there would be different recipes. A background like this: https://i.imgur.com/pLOpMJ9.png To cook these recipes you'd need 3,5 ingredients. For eg., let's say it's a sandw...
by Nanahs
Sat Feb 09, 2019 2:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Time code according to country's time zone?
Replies: 2
Views: 537

Re: Time code according to country's time zone?

Karl_C wrote: Sat Feb 09, 2019 1:31 am Your link has the answer:

Code: Select all

import pytz

tz = pytz.timezone('Europe/Paris')
paris_now = datetime.now(tz)
I tried it, but it didn't work. Maybe it did something wrong in the way hah
But, thank you! I'll try it again :)
by Nanahs
Thu Feb 07, 2019 2:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Time code according to country's time zone?
Replies: 2
Views: 537

[Solved] Time code according to country's time zone?

Why do I always have those crazy/difficult ideas? :oops: :lol: I'm using this code to make the character Jhon say "good morning", "good afternoon", "good evening", "good night". if hour in [6,7,8,9,10,11]: jump jhonmorning if hour in [12, 13, 14, 15, 16]: jump...
by Nanahs
Wed Feb 06, 2019 5:57 pm
Forum: Ren'Py Questions and Announcements
Topic: The audio doesn't stop. Is there something I can add/change in this code?
Replies: 0
Views: 253

The audio doesn't stop. Is there something I can add/change in this code?

There an audio player in the Messenger code I'm using. The problem is that if you click on "play button" again, the audio doesn't stop. It restarts. I wanted to button to be a play/pause button. I tried many things but it would always give me an error message. Those are the parts of the co...
by Nanahs
Mon Feb 04, 2019 2:32 pm
Forum: Ren'Py Questions and Announcements
Topic: How to let the person choose the "password"?
Replies: 2
Views: 276

Re: How to let the person choose the "password"?

Then what you need is a second variable to hold the “personal” password and an “input” process so that they can set it. Then you can do something like if typedpassword != personal_password and typedpassword != fallback_password: show screen wrongpassword ... Oh, ok. Thank you so much! I'll try it :)
by Nanahs
Mon Feb 04, 2019 12:43 pm
Forum: Ren'Py Questions and Announcements
Topic: How to let the person choose the "password"?
Replies: 2
Views: 276

How to let the person choose the "password"?

I'm using this code as a "password": init python: correctpassword = "jhon321" typedpassword = "" while typedpassword != correctpassword: python: typedpassword = renpy.input("Type the password to unlock.") if typedpassword != correctpassword: show screen wrongp...
by Nanahs
Sun Feb 03, 2019 8:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Vbar and screen?
Replies: 1
Views: 278

Re: Vbar and screen?

Oh, that's ok. I gave up using this screen and I tried something easier hah :oops: :lol:
by Nanahs
Sun Feb 03, 2019 9:29 am
Forum: Ren'Py Questions and Announcements
Topic: Vbar and screen?
Replies: 1
Views: 278

Vbar and screen?

I'm using this messenger code: screen telegram(): frame background "messenger/back.png" xysize (700,975) align (0.9,.5): frame background None xysize (560, 810) align (0.5,0.58): viewport id "vp_msg" mousewheel True yadjustment yadj: vbox spacing 15 xsize 550 xalign 0.4 box_rever...
by Nanahs
Sat Feb 02, 2019 9:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there anything like a "pause game" button/ pause game when clicking on textbutton?
Replies: 4
Views: 420

Re: Is there anything like a "pause game" button/ pause game when clicking on textbutton?

I think if you wanted to keep things the way they are, you could use a call. Call a blank screen with modal True, possibly also tag menu, and on that screen place a near invisible button that takes up the entire screen, upon clicking the action should be a Return(), which will close the screen and ...
by Nanahs
Sat Feb 02, 2019 7:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Action "Jump to the next page"?
Replies: 6
Views: 765

Re: [Solved] Action "Jump to the next page"?

Yes, modal property forces player to interact with the given screen and not the others, so you need to put your "tap to answer" button in a screen with other buttons to make them work simultaneously. https://www.renpy.org/doc/html/screens.html#screen-statement Oh, ok. Thank you! And thank...