Textbutton/Imagebutton with the "jump" function?

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
User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Textbutton/Imagebutton with the "jump" function?

#1 Post by Nanahs »

I'm working on a part of my game that is a messenger.

Let's say it looks like something like this:

Image

I'm using:

Code: Select all

            $renpy.pause (delay=0.4, hard=True)
So that the person can't skip while "Jhon" is typing the message.

But for the person to be able to answer, I wanted (where it's "answer" in the image) to something like a textbutton or a imagebuttom to show up. Only when it's time for the person to answer.
But I wanted the person to be able to answer ONLY if they click on the "answer" part of the screen.
I wanted to do it to make it look more realistic, like a real messeger app where you have to click on the box to type.

But I'm not really sure how to do that?
Make a buttom with the "JUMP" command. Without being especific.
I mean, with the "jump" function only. Without telling it to jump to a label or something.

It it possible to do?

Thanks.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Textbutton/Imagebutton with the "jump" function?

#2 Post by Per K Grok »

Nanahs wrote: Thu Dec 20, 2018 11:29 am
----------------

I'm using:

Code: Select all

$renpy.pause (delay=0.4, hard=True)

So that the person can't skip while "Jhon" is typing the message.
----

But I'm not really sure how to do that?
Make a buttom with the "JUMP" command. Without being especific.
I mean, with the "jump" function only. Without telling it to jump to a label or something.

It it possible to do?

Thanks.
'$ renpy.pause (delay=0.4, hard=True)'
only make a pause for 0.4 seconds. So you don't need jump to pass it.

If you use jump you need to tell to where to jump.

User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: Textbutton/Imagebutton with the "jump" function?

#3 Post by Nanahs »

Per K Grok wrote: Thu Dec 20, 2018 2:53 pm
Nanahs wrote: Thu Dec 20, 2018 11:29 am
----------------

I'm using:

Code: Select all

$renpy.pause (delay=0.4, hard=True)

So that the person can't skip while "Jhon" is typing the message.
----

But I'm not really sure how to do that?
Make a buttom with the "JUMP" command. Without being especific.
I mean, with the "jump" function only. Without telling it to jump to a label or something.

It it possible to do?

Thanks.
'$ renpy.pause (delay=0.4, hard=True)'
only make a pause for 0.4 seconds. So you don't need jump to pass it.

If you use jump you need to tell to where to jump.
Yes, that's the problem when you use "Jump" you have to tell where to jump. I wanted a button that has basically the same function of the "{nw}".
Like a "NEXT" button that you have to click to jump to another label.
But I don't think there's anything like that on Renpy. No problem.

Thanks :)

Post Reply

Who is online

Users browsing this forum: Ocelot