Holding of images without textbox

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
Mint
Regular
Posts: 25
Joined: Mon Jun 25, 2007 11:08 am
Contact:

Holding of images without textbox

#1 Post by Mint »

Hello again!

I've looked around and I'm not too sure if this was covered but-

I'm wondering if you can hold an image for as long as you want without the text window coming up. You know how sometimes when a picture cg comes up, it pauses for a few moments before going to the next cg/all the character sprites and junk shows up.

Also, can you specify different speeds for functions like dissolve? Or when you sent a certain speed, it's universal.

Oh yeah, I want to end the game with just an image instead of you clicking something x_x Like maybe "thankyou for playing" image pops up for a few moments before returning you to the title screen o.o

Thankyou ^^b
(sorry to bother you all, I'm trying my best to learn the language ^^ It's hard ;o;)

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Holding of images without textbox

#2 Post by monele »

Code: Select all

with Pause(2) # pauses for 2 seconds
# or...
$ renpy.Pause(2)
Just put that after some "show image with dissolve" and you're good to go.

Code: Select all

with Dissolve(4) # dissolves in 4 seconds
(and if you need precision, all these can be float numbers such as 2.5 for 2 seconds and a half)

Adorya
Miko-Class Veteran
Posts: 541
Joined: Fri Aug 18, 2006 4:51 pm
Contact:

Re: Holding of images without textbox

#3 Post by Adorya »

On the same topic, is there a way to make a click to continue on a scene instead of a dialogue line? (like a chapter scene)

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Holding of images without textbox

#4 Post by monele »

I think this should do it :

Code: Select all

$ ui.saybehavior()
$ ui.interact()
Put this after you display everything you need.

Mint
Regular
Posts: 25
Joined: Mon Jun 25, 2007 11:08 am
Contact:

Re: Holding of images without textbox

#5 Post by Mint »

monele wrote:

Code: Select all

with Pause(2) # pauses for 2 seconds
# or...
$ renpy.Pause(2)
Just put that after some "show image with dissolve" and you're good to go.
So like..

Code: Select all

show cg 6 with dissolve with Pause(0.35)
That doesn't work for me tho.. an error comes up~
same if I did

Code: Select all

show cg 6 with dissolve
$ renpy.Pause(2)
"'Dissolve' object is not callable"
"AttributeError: 'module' object has no attribute 'Pause'"

Thanks so much ^^!
You're great help ^^

(eep, sorry for another question, now when I quit my game, an error occurs and it says something about the renpy.exe file x_x)

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Holding of images without textbox

#6 Post by monele »

The "with pause" has to be on a new line. Only one "with" statement per line :).
It's like saying :
Show me this image with a dissolve transition
THEN
make a Pause transition

Guest

Re: Holding of images without textbox

#7 Post by Guest »

Ooooohh thanks so much!!!

One problem with that is when I click, it skips the pictures!

Is there a way to disable the click during those scenes?
I'm having the pictures flash along with the bgm.. so clicking the screen will cancel it X_X


Thanks so much! Such great help ;_;!

Mint
Regular
Posts: 25
Joined: Mon Jun 25, 2007 11:08 am
Contact:

Re: Holding of images without textbox

#8 Post by Mint »

Oh sorry, the guest was me ><

JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: Holding of images without textbox

#9 Post by JQuartz »

Well you can try this...

<insert code for all the animation here>
$ ui.textbutton('Skip', clicked=ui.returns('Skip'))
$ ui.pausebehavior( <number of seconds of delay>, result="Skip")
$ ui.interact()
<insert code after animation>

The textbutton is just a suggestion since personally I don't like being forced to watch animation.
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Post Reply

Who is online

Users browsing this forum: Google [Bot]