Hey, first, sorry if my english looks bad, i'm french.
In my game, I put successive pictures with a specific effect that is essential. However, if the user just clicks once, the effect will be skipped.
How could I forbid the click during this period ?
Thank you very much.
How to forbid during the game ?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: How to forbid during the game ?
Code: Select all
$ renpy.pause(1.0, hard=True)
Re: How to forbid during the game ?
thanks a lot, i'll test it
Re: How to forbid during the game ?
It doesn't work, it shows a black screen...
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: How to forbid during the game ?
How are you showing images?
Re: How to forbid during the game ?
MMh, in fact I tasted another placement, this is my code :
I want my pictures appear during 0.1 sec and there are 5 pictures like that, I want the user isn't able to click during this moment (because it will skip it)
Code: Select all
play sound "CYMBALES3.mp3"
show tisteed
with fade
$ renpy.pause(0.1, hard=True)
play sound "CYMBALES3.mp3"
show tistemelo
with fade
$ renpy.pause(0.1, hard=True)
play sound "CYMBALES3.mp3"
show tisteax
with fade
$ renpy.pause(0.1, hard=True)
play sound "CYMBALES3.mp3"
show tistelucy
with fade
$ renpy.pause(0.1, hard=True)
play sound "CYMBALES3.mp3"
show fond2
with fade
$ renpy.pause(0.1, hard=True)
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: How to forbid during the game ?
Try showing your image like this:
If you want the picture to only show for 0.1, then that is too brief to really need the prevent clicking. I'm not sure what you're building, but working in ATL to make all of these images one image will help you, so that all you need to do is show one image like I just did with the Pause after it will the total time to wait.
Otherwise, just let the user mess up their experience if they want to!
Code: Select all
show tisteed:
alpha 0
linear 0.5 alpha 1.0
linear 0.5 alpha 0.0
$ renpy.pause(1.0, hard=True)
Otherwise, just let the user mess up their experience if they want to!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot]