Search found 12 matches

by cardium
Fri Apr 29, 2016 7:35 am
Forum: Ren'Py Questions and Announcements
Topic: Set and show image within a loop
Replies: 4
Views: 1289

Re: Set and show image within a loop

Wow! Thank you so much for the detailed example. I literally don't understand most of the code right now, so I have a lot of studying to do. Thank again for your time!
by cardium
Thu Apr 28, 2016 3:38 am
Forum: Ren'Py Questions and Announcements
Topic: Set and show image within a loop
Replies: 4
Views: 1289

Re: Set and show image within a loop

Great thank you for the tip. I found a way to do it like that. This is ALT right? # The game starts here. label start: image animate: "character/1.png" 0.1 "character/2.png" 0.1 "character/3.png" 0.1 repeat "dsadsdsa" show animate "dasdsadsadsa" But the question remains. What if I have 100 animation...
by cardium
Wed Apr 27, 2016 2:40 am
Forum: Ren'Py Questions and Announcements
Topic: Set and show image within a loop
Replies: 4
Views: 1289

Set and show image within a loop

Hello! I would like to ask you about setting images within a loop, but most importantly displaying images within a loop. For example I tried this in order to set the image name: init: $ count = 1 while count < 10: $ count += 1 image test[count] = "character/[count].png" And this loop to show my imag...
by cardium
Sun Jun 21, 2015 2:00 pm
Forum: Ren'Py Cookbook
Topic: Instant CG and BG gallery
Replies: 151
Views: 46048

Re: Instant CG and BG gallery

Exactly like that! Thank you so much for your help!
I know it was too obvious, but I am a starter in renpy scripting! Cheers ;) !
by cardium
Fri Jun 19, 2015 1:03 pm
Forum: Ren'Py Cookbook
Topic: Instant CG and BG gallery
Replies: 151
Views: 46048

Re: Instant CG and BG gallery

Hello and thank you for this great script! After some work I managed to make it work.
Although I have a question. My cg gallery contains transparent pictures (.png) without background. How can I add a background image when I click to open and enlarge a cg picture?

Thanks again!
by cardium
Tue Nov 25, 2014 7:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

Mmmm Saltome I did not ignored your comment, this is really not the case. I am really sorry if I have upset you, by bad. I was just searching to solve for a very specific problem and PyTom provided me the best solution. Your solution was really great but I needed write an if statement in each action...
by cardium
Tue Nov 25, 2014 6:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

Yes I know it works, I have just tried it.

The thing is that I will need to create an if statement -> energy == 0 then jump to label need_sleep for every action in the game (which is a lot!).
If I could do it inside the limit_stats python code it would be better I think.
by cardium
Tue Nov 25, 2014 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

Yeah this is what I initially have done thank you. But I want to change and check my value in every action, so PyTom solution was more appropriate for my problem. Now I am trying to find how to Jump after the if in that code for example: init python: def limit_stats(): try: if store.energy < 0: stor...
by cardium
Tue Nov 25, 2014 5:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

As I was testing philat answer (I know each a little ugly but it works :P ): init python: def change_energy(stat,function,amount): if function == "+": stat =+ amount if stat > 100: stat = 100 elif stat < 0: stat = 0 return stat elif function == "-": stat =- amount if stat > 100: stat = 100 elif stat...
by cardium
Tue Nov 25, 2014 5:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

I can't thank you enough philat! You saved me a lot of time with a very quick and easy solution!! It works like a charm!
This kind of code can help in other issues I had, so I really appreciate your help! Also the DSE tutorial will be helpful!
Cheers!
by cardium
Tue Nov 25, 2014 4:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Re: Global variables - Set max and min values

Thank you for your quick response! I have already read this but maybe I have missed the solution.
I will read it more carefully and get back to you!
by cardium
Tue Nov 25, 2014 4:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables - Set max and min values
Replies: 19
Views: 5077

Global variables - Set max and min values

Hello everyone, I am very new on renpy and python so excuse me if this question is a little newbie: I want to set a variable, for example the energy on a dating sim kind of game. In the script.rpy file I set: label start: $ energy = 80 label sleep: $ energy = energy + 80 # energy now is 160 label di...