Search found 255 matches

by IrinaLazareva
Wed Oct 17, 2018 3:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Pausing Timers
Replies: 6
Views: 164

Re: Pausing Timers

'pseudo-timer' default mzt = 10 default mzton = True screen countdown(): if mzton and mzt>0: timer 1 repeat True action SetVariable('mzt', mzt-1) if mzt>0: text '[mzt]' size 150 at truecenter textbutton 'Pause' action ToggleVariable('mzton') at right else: text 'K A B O O M ! ! !' size 100 at letboo...
by IrinaLazareva
Wed Oct 10, 2018 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] My game has to be "auto forward". Codes are not working?
Replies: 2
Views: 76

Re: My game has to be "auto forward". Codes are not working?

try to replace msg() function in messenger.rpy def msg(txt, who=False, sound=False, p=None): store.m_msg.append((who, txt, sound)) store.yadj.value = store.yadj.range+300 renpy.restart_interaction() if who: renpy.play("new_message.mp3", "sound") renpy.pause(p) And then: python: msg("Hello?", who=Tru...
by IrinaLazareva
Wed Oct 10, 2018 1:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] How can I make it play a random sound?
Replies: 11
Views: 142

Re: How can I make it play a random sound?

And here's an example (It will work with hotspot too). textbutton 'Power on' activate_sound renpy.random.choice(mysound) action Play('music', 'some_music.mp3') textbutton 'Power off' activate_sound renpy.random.choice(mysound) action Stop('music') https://renpy.org/doc/html/style_properties.html#sty...
by IrinaLazareva
Wed Oct 10, 2018 1:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] How can I make it play a random sound?
Replies: 11
Views: 142

Re: How can I make it play a random sound?

So, I'm using hotspot. There's a buttom that when you click, you play a sound (not music). But I wanted to have more than one sound, that would play randomly when the person clicks. I was trying to use: hotspot(549, 88, 57, 47) action Play("sound","jhoneffect.mp3", "annaeffect.mp3", "markeffect.mp3...
by IrinaLazareva
Sun Oct 07, 2018 11:36 am
Forum: Ren'Py Questions and Announcements
Topic: hover problem
Replies: 2
Views: 102

Re: hover problem

try $result=renpy.imagemap("kitchen_idle.png","kitchen_hover.png",[(6,3,600,1078,"kitchen"),(1381,14,1917,1078,"bathroom")]) #-------------------------------------------------------------------------------------------------^^ You used old version of imagemap, where hotspots - A list of tuples defini...
by IrinaLazareva
Sun Oct 07, 2018 5:15 am
Forum: Ren'Py Questions and Announcements
Topic: Main menu centered buttons
Replies: 7
Views: 137

Re: Main menu centered buttons

This normal behavior of the main_menu screen... Screens of main and game menu are connected by a ' tag menu ' and a ' use navigation ' statement. If you want to change it, you need rewrite navigation screen (), and remove a use statement those screens where buttons aren't required. https://www.renpy...
by IrinaLazareva
Sat Oct 06, 2018 5:56 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is there a new code to import real time to the game (android)?
Replies: 2
Views: 108

Re: Is there a new code to import real time to the game (android)?

Nanahs wrote:
Fri Oct 05, 2018 9:02 pm
Maybe this code doesn't work on Android.
No. The code is work on Android. Obviously, a problem in something else..
by IrinaLazareva
Wed Oct 03, 2018 7:56 am
Forum: Ren'Py Questions and Announcements
Topic: Set Condition Using Range of Values
Replies: 3
Views: 105

Re: Set Condition Using Range of Values

Wataru2 wrote:
Tue Oct 02, 2018 9:24 pm
Problem is I can't find a syntax that checks whether currenttime is simply in the range of the two numbers...

Code: Select all

    if currenttime in range(8, 11):
        show black
is equivalent to:

Code: Select all

    if 8 <= currenttime < 11:
or

Code: Select all

    if 8 <= currenttime <= 10:
by IrinaLazareva
Sat Sep 29, 2018 2:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Timer in Screens and Screen Language Too Slow
Replies: 2
Views: 109

Re: Timer in Screens and Screen Language Too Slow

If I set timer 3 , I'm actually getting about 5-6 seconds in real life. Here I get 5-6 seconds... default gamecount = 3 timer 3.0 repeat True action If(gamecount > 0, SetVariable('gamecount', gamecount - 1), Jump('inGame2')) text "[gamecount]" xalign 0.5 ypos 0.5 Your code sets change of a variable...
by IrinaLazareva
Wed Sep 19, 2018 8:01 am
Forum: Ren'Py Questions and Announcements
Topic: My sound isn't working!
Replies: 25
Views: 642

Re: My sound isn't working!

by the way, I converted and tested your file too and left the result in the comment above...
viewtopic.php?f=8&t=51321#p495415
Probably, the problem not in the file.
by IrinaLazareva
Wed Sep 19, 2018 7:43 am
Forum: Ren'Py Questions and Announcements
Topic: Gallery unlocks screen.
Replies: 4
Views: 183

Re: Gallery unlocks screen.

in this case, it is much simpler to use screen's language instead of standard Gallery's function. https://renpy.org/doc/html/screens.html#screen-statement https://renpy.org/doc/html/screens.html#grid https://renpy.org/doc/html/screen_actions.html#ShowMenu https://renpy.org/doc/html/screen_actions.ht...
by IrinaLazareva
Wed Sep 19, 2018 7:29 am
Forum: Ren'Py Questions and Announcements
Topic: Disable sound of selected imagebuttons? [SOLVED]
Replies: 7
Views: 155

Re: Disable sound of selected imagebuttons?

Here's my code: imagebutton auto "gui/fullscreen_%s.png" xpos 290 ypos y focus_mask True action Preference('display', 'fullscreen') hover_sound "HOVER.wav" activate_sound "KETTEI.wav" imagebutton auto "gui/window_%s.png" xpos 455 ypos y focus_mask True action [Preference('display', 'window'), Selec...
by IrinaLazareva
Mon Sep 10, 2018 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: why my game detected as virus ?
Replies: 5
Views: 339

Re: why my game detected as virus ?

Sometimes, the similar problem arises when you create such objects...
by IrinaLazareva
Mon Sep 10, 2018 12:29 pm
Forum: Ren'Py Questions and Announcements
Topic: My sound isn't working!
Replies: 25
Views: 642

Re: My sound isn't working!

TsugumiLightning wrote:
Tue Aug 14, 2018 7:51 pm
Its not the extension...
Nope. Kia is right. This is wav-file, not .ogg, besides, it is partially damaged.
Try this.
by IrinaLazareva
Sun Sep 09, 2018 3:24 am
Forum: Ren'Py Questions and Announcements
Topic: updating variables that rely on other variables
Replies: 2
Views: 108

Re: updating variables that rely on other variables

Add to your script (above label start): init python: def sumt(): global dArmor, dNatural, dTotal dTotal = dArmor + dNatural config.overlay_functions.append(sumt) For example: default dArmor = 0 default dNatural = 0 default dTotal = 0 init python: def sumt(): global dArmor, dNatural, dTotal dTotal = ...