Search found 297 matches

by Nanahs
Wed Feb 13, 2019 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How can I use it as an "action"?
Replies: 6
Views: 300

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

It's working great! Thanks!
Just one question. If I wanted to stablish a limit, how would it be?

Like, if you could only get 10 coins, and after this imagebutton wouldn't add more coins when clicked.

I tried a few things like "max_coins=10", etc and a few other codes, but they didn't work.

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

Re: How can I use it as an "action"?

Thank you so much guys! :)
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: 300

[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". https://i.imgur.com/OkBeZaW.png ...
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: 132

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 ypadding 60 text "TEXT...
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: 132

[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: 131

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 goes back...
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: 229

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: 229

[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: 227

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: 227

[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 jhonafternoon if hour in [17, 18, 19]: ...
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: 157

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 code that ha...
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: 139

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: 139

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 wrongpassword $renpy.pause (delay=1.5, hard=Tr...
by Nanahs
Sun Feb 03, 2019 8:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Vbar and screen?
Replies: 1
Views: 152

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: 152

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_reverse True: for message...