Is it possible to establish a limit for the "jumping area"?

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:

Is it possible to establish a limit for the "jumping area"?

#1 Post by Nanahs »

In a normal game, anywhere on the screen where you click, you jump the the next text, label, etc.

I was wondering if it's possible to establish a limit to that "jump area".
I mean, for example. This is a screen/scene;

Image

If I wanted the game to jump to the next part only if the person clicked on the pink box.
But without it being an imagebutton or something like that. Something similar to when you establish the position of a hotspot.
It that possible?

Thanks.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Is it possible to establish a limit for the "jumping area"?

#2 Post by trooper6 »

Why would you not make it an image button? That, and a bit of extra code to make the game doesn’t advance otherwise, will do exactly what you want. I have something similar in my game.

So why no image buttons?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Is it possible to establish a limit for the "jumping area"?

#3 Post by Imperf3kt »

You can use a regular button if you dislike imagebuttons
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

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

Re: Is it possible to establish a limit for the "jumping area"?

#4 Post by Nanahs »

I didn't want to use imagebuttons because my game simulates a phone messenger. The messages you receive "jumps" automatically. You can only jump when it's your time to answer. So I thought it would be more complicated it if had to show and hide buttons all the time.
But maybe that would be a better alternative.

Thanks guys :)

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]