Search found 21 matches

by de_nederlander
Thu Aug 11, 2016 2:25 pm
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner [SOLVED]

This code works screen my_scr(): text "money: [money]" size 35 color "#c00" align (0.5, 0.05) default money = 100 label start: "..." show screen my_scr "." $ money += 10 "?" So check if "earn" is not zero. it works now, I used str(money) i...
by de_nederlander
Thu Aug 11, 2016 2:05 pm
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner [SOLVED]

Alex wrote:If you do it this way, the value of money variable should update in screen.
it doesn't
by de_nederlander
Thu Aug 11, 2016 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner

Alex wrote:
de_nederlander wrote:everything works with this, but it doesn't seem to update once it more money is added.
do I have to hide and show it again, or is there another way?
But what's the code to increase the money amount?
I use $ money += earn
by de_nederlander
Thu Aug 11, 2016 11:30 am
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner

do I have to hide and show it again That's the only way I know. I would recommend (if you know how) building a function that both updates the money and refreshes (re-shows) the screen. That way you won't ever forget to update the screen. okay thanks a lot. I've seen you answering quite some questio...
by de_nederlander
Thu Aug 11, 2016 11:26 am
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner

see https://www.renpy.org/doc/html/screens.html#text and follow the links for the properties you can apply to text. also see https://www.renpy.org/doc/html/screens.html#frame for the links for the properties you can apply to the frame everything works with this, but it doesn't seem to update once i...
by de_nederlander
Thu Aug 11, 2016 10:59 am
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

Re: show variable in right corner

Iylae wrote:A simple example:

Code: Select all

screen show_money():
    frame:
        xalign 1.0
        text str(money) 


label start:
    
    default money = 10
    
    show screen show_money
    
    "test"
it works, but is there a way to adjust the size and the position?
by de_nederlander
Thu Aug 11, 2016 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: show variable in right corner [SOLVED]
Replies: 13
Views: 3318

show variable in right corner [SOLVED]

Maybe I'm asking quite some questions lately but, how do I show a variable in the right corner of the screen, I would like the player to see how much coins he has, and how much points. I've tried looking for how ui.text works but I just can't see how to style them and place them. thanks for your help.
by de_nederlander
Wed Aug 10, 2016 5:44 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1055

Re: add variable every minute

Basically have nothing but the timer in it. This is test code that worked for me: label start: $ test_var = 0 show screen invi pause "[test_var]" screen invi: timer 1.0 repeat True action SetVariable("test_var", test_var+10) I think I can make it work with that, thanks.
by de_nederlander
Wed Aug 10, 2016 4:38 pm
Forum: Ren'Py Questions and Announcements
Topic: New Variables in an Updated Game - Not Defined?
Replies: 4
Views: 644

Re: New Variables in an Updated Game - Not Defined?

So, my my visual novel, I update it ever couple of weeks, and whenever I add new variables in, I tend to get an error for the new variable not being defined when I continue from a save file and progress to the new content. I started using the Default tag with my new variables, and for the most part...
by de_nederlander
Wed Aug 10, 2016 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1055

Re: add variable every minute

I'm afraid you'll have to test it yourself. I suspect what you can do is just add an invisible screen that's always showing but doesn't conflict with anything.
and how does an invisible screen work?
by de_nederlander
Wed Aug 10, 2016 4:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Layering image over textbox
Replies: 3
Views: 493

Re: Layering image over textbox

city wrote:Bumping for help.

Will the overlay function help place images over the textbox?
its easier to just have every combination in your image folder, it would also prevent a lot of problems.
I've had a similair thing in a previous game.
by de_nederlander
Wed Aug 10, 2016 4:08 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1055

Re: add variable every minute

Code: Select all

timer 60.0 repeat action SetVariable('money', money + income)
i tried this but it says it expects a statement
by de_nederlander
Wed Aug 10, 2016 4:04 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1055

Re: add variable every minute

kivik wrote:I think timer is the way to do it:

https://www.renpy.org/doc/html/screens.html#timer

I think the code may look something like this:

Code: Select all

timer 60.0 repeat action SetVariable('money', money + income)
does this work no matter what screen you're on?
by de_nederlander
Wed Aug 10, 2016 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: add variable every minute [SOLVED]
Replies: 7
Views: 1055

add variable every minute [SOLVED]

I wanted to make a script that would add a variable to another variable every minute.

for example I have variable "money" and I want to add variable "income" to it every 60 seconds, no matter on which label/screen the player currently is.

thanks for your help.
by de_nederlander
Sat Aug 06, 2016 5:52 pm
Forum: Development of Ren'Py
Topic: Error installing rapt on 6.99.10
Replies: 8
Views: 2242

Re: Error installing rapt on 6.99.10

Thanks for your help, Helia!! I tried out your suggestion and it turned out that /extras/google/play_apk_expansion and /extras/google/play_licensing didn't even exist in rapt/android-sdk-r24.4.1. I did have those files in my older version of RAPT (android-sdk-r23) so I copied them over without rena...