Search found 2310 matches

by Alex
Sat Nov 16, 2019 1:41 pm
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 85
Views: 38762

Re: Simple minigames (Screen Language only).

Try to add a variable 'timer_on' and set it to True/False to start/stop timer. Something like ##### The game screen screen memo_scr: ##### Timer if timer_on: # <--- timer 1.0 action If (memo_timer > 1, SetVariable("memo_timer", memo_timer - 1), Jump("memo_game_lose") ) repeat True text str(memo_time...
by Alex
Thu Nov 14, 2019 6:13 pm
Forum: Ren'Py Questions and Announcements
Topic: How to create a label statement in a python custom class ?
Replies: 3
Views: 174

Re: How to create a label statement in a python custom class ?

... Once the player clicked a option, it will automatically jump to a label corresponding to that option. The options are all dynamic, based on variables. So the corresponding labels should also be dynamic. ... What those labels should do - some calculations, oparations with screens or..? In this c...
by Alex
Sun Nov 10, 2019 10:12 am
Forum: Ren'Py Questions and Announcements
Topic: Variable screen naming? [SOLVED]
Replies: 2
Views: 190

Re: Variable screen naming?

Try to give the same 'tag' for all those screens, so you could show them using their names and hide using this single 'tag' (Hide action can use 'tag' of the screen instead of its name) - https://www.renpy.org/doc/html/screens.html#screen-statement Also, this thread might be interesting for you - ht...
by Alex
Sun Nov 10, 2019 5:38 am
Forum: Ren'Py Questions and Announcements
Topic: Sniper Minigame animation - possible?
Replies: 2
Views: 212

Re: Sniper Minigame animation - possible?

Yet another 'shot'...)) label start: "Ready?" $ x, y = renpy.get_mouse_pos() $ renpy.set_mouse_pos(x, y-20, duration=0.25) $ renpy.pause(0.25, hard=True) $ renpy.set_mouse_pos(x, y, duration=0.25) $ renpy.pause(0.25, hard=True) "?" https://www.renpy.org/doc/html/other.html#renpy.get_mouse_pos https:...
by Alex
Fri Nov 08, 2019 12:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED- WRONG QUESTION- no need to read it]
Replies: 1
Views: 192

Re: "pre-load" an animation, is it possible?

This might help people to answer your question if you provide some code - how this animation made and where/how you use it.
by Alex
Thu Nov 07, 2019 4:11 pm
Forum: Ren'Py Cookbook
Topic: Simple minigames (Screen Language only).
Replies: 85
Views: 38762

Re: Simple minigames (Screen Language only).

... i want make the cards to appear in a specific area of ​​the screen. ... Well, for now all the cards are placed in a grid, so you can set the position of the grid, like grid 3 4: align (0.5, 0.5) for card in cards_list: or apply the transform to it - https://lemmasoft.renai.us/forums/viewtopic.p...
by Alex
Tue Nov 05, 2019 4:29 pm
Forum: Ren'Py Questions and Announcements
Topic: NES-era GUI
Replies: 15
Views: 661

Re: NES-era GUI

I corrected that after looking at the documentation and the error is mostly the same, now it says that the variable imageFlag does not exist. As Per K Grok said, you've got an error 'cause 'image' statement is used to define images, not variables. And you need to set the default value for variable ...
by Alex
Mon Nov 04, 2019 9:45 am
Forum: Ren'Py Questions and Announcements
Topic: [Sloved] A help for a grammar and logic problem about how write a funtion
Replies: 2
Views: 219

Re: A help for a grammar and logic problem about how write a funtion

Try it like init python: def hide_my_screens(): my_list = ["screen_1", "my_other_screen", "gui_screen"] # list of screen names # this will hide screens that are in a list for screen_name in my_list: # 'screen_name' is just a name of variable renpy.hide_screen(screen_name) # without quotes, 'cause it...
by Alex
Fri Nov 01, 2019 5:14 pm
Forum: Ren'Py Questions and Announcements
Topic: problem about screen sovrapposition, hiding wrong, jump wrong
Replies: 3
Views: 244

Re: problem about screen sovrapposition, hiding wrong, jump wrong

... if you use call to call a label, then return doesn't take you to the main_menu, but simply back where you used "call", right?) ... Yes, when you call a label you need to return back (if you don't need to return just use jump statement). But if you didn't call a label and there's no place to ret...
by Alex
Fri Nov 01, 2019 2:37 pm
Forum: Ren'Py Questions and Announcements
Topic: problem about screen sovrapposition, hiding wrong, jump wrong
Replies: 3
Views: 244

Re: problem about screen sovrapposition, hiding wrong, jump wrong

Khm, it looks like you've mixed up screens and labels concepts. You see, in Ren'Py there is a game flow - code executed line by line from start of the game (label start). For convenience, code can be devided in to labels. But if you don't have any jump statement, then when the program reach the end ...
by Alex
Wed Oct 30, 2019 2:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton Problem
Replies: 5
Views: 322

Re: Imagebutton Problem

XemiTicTac wrote:
Wed Oct 30, 2019 5:50 am
... I tried to use the hide function but it doesnt disappear at the same time as the background/scene. ...
It disappears when you hide it, so try to hide it right before showing new scene.

Screens are made to show some gui elements for players, so they don't disappear with new scene.
by Alex
Tue Oct 29, 2019 8:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How can I go back in the same screen and situations from a label?
Replies: 4
Views: 273

Re: after a day of tests.... How can I go back in the same screen and situations from a label?

Well..., then you could try not to show the gallery, but call a label that will show gallery screen and will have a line with return statement to return from gallery to the point from where it was called. Like (this not tested code) screen my_ui(): textbutton "Gallery" action [Hide("my_ui", Call("ga...
by Alex
Tue Oct 29, 2019 7:02 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How can I go back in the same screen and situations from a label?
Replies: 4
Views: 273

Re: after a day of tests.... How can I go back in the same screen and situations from a label?

... I assume that you show the gallery from the main menu, so jumping to label and returning from it will bring you back to main menu. Try to call this label - https://www.renpy.org/doc/html/screen_actions.html#Call label gallerylab_1: scene bg black with dissolve show prova1 hide prova1 scene bg b...
by Alex
Mon Oct 28, 2019 3:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton Problem
Replies: 5
Views: 322

Re: Imagebutton Problem

... I dont know what can i do to dont hide my imagebuttons. I saw something about layer config but i dont know how to put it. ... Yes, in Ren'Py 'things' are shown on layers (similar to photoshop). So, when you press mousewheel or 'H', everything on some layers hides. You can add another layer and ...