Search found 2981 matches

by Alex
Wed Jun 01, 2022 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Add images to a screen via an action?
Replies: 4
Views: 246

Re: Add images to a screen via an action?

Is it possible to add or remove images or other screen element to a screen via a timer or button action? I'm experimenting with a minigame and trying to figure out what's possible. ... If it will be a turn-based game, I would suggest not to include game logic and/or timers inside screen. Try to put...
by Alex
Wed Jun 01, 2022 6:38 am
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 127
Views: 75997

Re: Simple minigames (Screen Language only).

My question is can we make if certain cards are matched time will be reduced? Let's say for ex: There are cards A,B,C,D,T (in pair) If you match card A,B,C,D no time penalty But if you match card T time will be dropped Mmm, try to add one more key to describe card, like "c_penalty" that will store ...
by Alex
Tue May 31, 2022 11:19 am
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 127
Views: 75997

Re: Simple minigames (Screen Language only).

Hey Alex sorry to bother you again :cry: But can you help me to make that if trap cards are matched only then time will be reduced other wise not Ex: trap card A is matched time will reduce. Non trap card B is matched no time will be reduced. Thanks and again sorry for causing you problem 🙇 Hm, I'm...
by Alex
Mon May 30, 2022 12:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Show image path error
Replies: 9
Views: 312

Re: Show image path error

Check if your image is in 'your_game_folder/game' or subfolder(s). If image is in 'game' folder it shouldn't complain about path at all, and if it in subfolder(s), you need to specify path starting from subfolder of 'game' folder.
by Alex
Sun May 22, 2022 4:12 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]sort list
Replies: 10
Views: 331

Re: sort list

...But I would like the result also to be randomly configurable. playerscore = 30 or $ playerscore = [mypoints] (it doesn't work but I would like this kind of thing, the player can score points in the championship but it depends on the choices he makes during the competition, I can't know how many ...
by Alex
Sat May 21, 2022 7:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Randomly appearing images are skipping.
Replies: 4
Views: 281

Re: Randomly appearing images are skipping.

To prevent image change try it like screen main_menu(): default random_img = None # screen variable # choose image if not yet if not random_img: random_img = renpy.random.choice(["gui/main_menu/characters/1.png", "gui/main_menu/characters/2.png", "gui/main_menu/characters/3.png"]) tag menu add gui....
by Alex
Sat May 21, 2022 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Some global variables problem
Replies: 2
Views: 293

Re: Some global variables problem

...It is not updated in real time, after pop_item func called, just show me 6 and then 1 at the end of the game. I just can't understand, what am I doing wrong. global sprites working well. You need to restart interaction to see updated value onscreen. If you able to click through some dialog while...
by Alex
Sat May 21, 2022 4:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Randomly appearing images are skipping.
Replies: 4
Views: 281

Re: Randomly appearing images are skipping.

So, I added a randomly choosen image to my screen. screen main_menu(): tag menu add gui.main_menu_background add renpy.random.choice(["gui/main_menu/characters/1.png", "gui/main_menu/characters/2.png", "gui/main_menu/characters/3.png"]) But they're changing, when I press Ctrl. Is there a way to dis...
by Alex
Sat May 21, 2022 4:01 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]sort list
Replies: 10
Views: 331

Re: sort list

...If I want to change the score of the players, I have to add a line like this? $ a = [('Mendoza', 33), ('Sinero', 45), ('Gibbs', 42), ("Alonzo", 17), ('Goncalva', 84), ('Garrido', 28), ('Enciso', 74), ('Lozano', 101)]... Well, yes - you need to operate the list of results somehow. To make things ...
by Alex
Sat May 21, 2022 8:04 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]sort list
Replies: 10
Views: 331

Re: sort list

I'm sorry I don't understand anything, I'll need more explanation if you want help me. I've already read the link you gave me and a lot of other renpy documentation on sort lists and with all that I tried for two days to create my code and I didn't do better than the one I gave as an example. Obvio...
by Alex
Sat May 21, 2022 7:17 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]sort list
Replies: 10
Views: 331

Re: sort list

...But it doesn't work at all. ... In this code sample you doesn't use your class. You can sort list right inside the screen screen sort_scr(): hbox: align(0.5, 0.1) spacing 20 vbox: spacing 10 text "Original list" for res in a: $ name, score = res text "{} - {} pts".format(name, score) vbox: spaci...
by Alex
Sat May 21, 2022 6:11 am
Forum: Ren'Py Questions and Announcements
Topic: Drag & Drop minigame
Replies: 12
Views: 410

Re: Drag & Drop minigame

...palyer can move with object "ctverec_drag" and when place it to spot "ctverec" he get notify correct.(ctverec means square) Some problems is still there. I dont know how to imlpemet this all to game, how to continue, where to call another screen or label ? And can instead of renpy.notify my char...
by Alex
Fri May 20, 2022 6:34 am
Forum: Ren'Py Questions and Announcements
Topic: Drag & Drop minigame
Replies: 12
Views: 410

Re: Drag & Drop minigame

Now i´m totaly lost.....After seeing this lines of codes and examples i have no idea where all that if statements and returns goes... If you call 'mapa' screen then 'return True' in 'drag_puzzle' function will end player's interactions with this screen (return from called screen) and 'return' will ...
by Alex
Fri May 20, 2022 6:29 am
Forum: Ren'Py Questions and Announcements
Topic: Drag & Drop minigame
Replies: 12
Views: 410

Re: Drag & Drop minigame

...Try to make it easier only with two possible spots and one moveable object, but it is mess ... In screen 'mapa' the droppable object (the last one) should have drag_name 'ctverec_drag'. In drag_puzzle function: - if drags[0].drag_name=="ctverec" and drop.drag_name=="ctverec_drag" line should end...