[solved]mousearea>hovered>jump?

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
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

[solved]mousearea>hovered>jump?

#1 Post by Kia » Sat Aug 02, 2014 5:54 am

I'm trying to make a jump after hovering a mousearea but I cant figure out how.

Code: Select all

    screen overlay:
        mousearea:
            area (0, 0, 1.0, 100)
            hovered ??????
    show screen button_overlay
can somebody point me at the right direction please ^_^
Last edited by Kia on Mon Aug 11, 2014 2:34 am, edited 1 time in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: mousearea>hovered>jump?

#2 Post by xela » Sat Aug 02, 2014 6:30 am

Did you try

Code: Select all

hovered action Jump("labelname")
?
Like what we're doing? Support us at:
Image

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: mousearea>hovered>jump?

#3 Post by Asceai » Sat Aug 02, 2014 6:30 am

get rid of 'action'.

User avatar
Kia
Eileen-Class Veteran
Posts: 1011
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: mousearea>hovered>jump?

#4 Post by Kia » Sat Aug 02, 2014 7:06 am

thanks ^_^ now what if I want to hide/remove the mousearea as well?
and I'm getting this feeling that there is a hidden list of code that I'm not seeing in the "doc" there was nothing like this in jump section of it.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: mousearea>hovered>jump?

#5 Post by xela » Sat Aug 02, 2014 7:07 am

Asceai wrote:get rid of 'action'.
That's the correct way, I just tried it with action and it crashed on me.

so:

Code: Select all

Jump("label_name")
will do.
b3vad wrote:thanks ^_^ now what if I want to hide/remove the mousearea as well?
and I'm getting this feeling that there is a hidden list of code that I'm not seeing in the "doc" there was nothing like this in jump section of it.
If you just want to remove the mouse area, you should set up a screen variable like this:

Code: Select all

default ma = True
and add

Code: Select all

[SetScreenVariable("ma", False), Jump("label_name")]
There is also some Flip screen variable class if you prefer that, check with the documentation.

Other wise

Code: Select all

Hide("screen_name")
Will hide the whole screen.
Like what we're doing? Support us at:
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev