[Solved]Doubt about the screen

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.
Message
Author
zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

[Solved]Doubt about the screen

#1 Post by zabuzaeldemonio »

Greetings, I would like to know if there is any way to cancel a screen completely.

I am interested in knowing this due to the Jump that is performed on a screen, and by following label, since the screen is maintained.

This is a part of the corresponding code.

Code: Select all

screen ghost2:
	imagebutton auto "gui/ghost/poseacti_%s.png" xpos 720 ypos 400 focus_mask True action Jump ("remember") activate_sound ("musica/menu/Blip2.wav") hovered [ Play ("test_alz3", "sfx/click.wav")]
Last edited by zabuzaeldemonio on Wed Mar 21, 2018 3:11 am, edited 1 time in total.
My personal Project:
Image

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: Doubt about the screen

#2 Post by trooper6 »

I don't understand your question.

I also don't understand what is happening in your code...because there is no screen mentioned in that code.
What I'm seeing is a button that takes you to a label. What happens in that label? Do you show a screen in that label?

Anyhow, the way to get rid of a screen is to hide the screen.
https://www.renpy.org/doc/html/screens. ... statements

I don't know if that is what you mean by cancel.
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#3 Post by zabuzaeldemonio »

I will try to explain myself better;

Code: Select all

screen ghost2:
    
    tag menu
    add "gui/ghost/ghostfondo.png"
    imagebutton auto "gui/ghost/poseacti_%s.png" xpos 720 ypos 400 focus_mask True action Jump ("remember") activate_sound ("musica/menu/ghost.wav") hovered [ Play ("test_alz3", "sfx/click.wav")]
This screen is shown when the player clicks on a logo, this place shows a transparent background with the corresponding button

Code: Select all

label remember:
    hide screen ghost2
    $ renpy.hide_screen("ghost2")
    scene white
    with dissolve
This is the corresponding label, the problem is as follows, once the player clicks on the button with the jump, the screen remains, (even if you have used those functions to hide it), since when you right click, it returns to the moment before clicking on the logo
My personal Project:
Image

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: Doubt about the screen

#4 Post by trooper6 »

This is all really messy and I think there is a much better way to go about what you want.

So what exactly do you want to happen. The whole thing. Is this correct?

1) There is a logo on the screen.
2) When the player clicks on the logo, an image shows up on the screen.
3) When the player clicks on that image is goes away.

Is that all you want?
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#5 Post by zabuzaeldemonio »

I think in essence, yes
My personal Project:
Image

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: Doubt about the screen

#6 Post by trooper6 »

I have a question. When the image is showing what do you want to happen? Do you want:

1) The game not to move forward unless they specifically click on the the image
2) The game to move forward with the image remaining visible until they click on the image
3) When they click anywhere to move the game forward, the image disappears

Which behavior do you want?
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#7 Post by zabuzaeldemonio »

My idea is that when the player clicks on the logo, he can return to the moment before clicking on it, or click on the image in the logo and make the corresponding jump
My personal Project:
Image

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: Doubt about the screen

#8 Post by trooper6 »

But looking at your code...there is no jump. You just hide the image. Where are you jumping to? What exactly do you want your game to do. Lay out the steps...because I'm clearly missing some information about what you want that image to do.
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#9 Post by zabuzaeldemonio »

It is on the image button

Code: Select all

action Jump ("remember")
My personal Project:
Image

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: Doubt about the screen

#10 Post by trooper6 »

But "remember" doesn't do anything but hide the screen. So what do you ultimately what remember to do? Play a full scene? Is it the same scene whenever you click that button? After the scene is over do you want to return to where you came from?
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#11 Post by zabuzaeldemonio »

Yes to the three questions.
My personal Project:
Image

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: Doubt about the screen

#12 Post by trooper6 »

It is important to have all this information...without the big overview, a person helping you can't give you the best advice. Give me ten minutes.
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#13 Post by zabuzaeldemonio »

Thank you very much for the help, and I regret having expressed the problem badly
My personal Project:
Image

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: Doubt about the screen

#14 Post by trooper6 »

Another quick question. Do you want the remember scene to be a full scene with its own background image and sprites and all that? Or do you just want it to be dialogue against a white screen?
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

zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

Re: Doubt about the screen

#15 Post by zabuzaeldemonio »

Full scene.
My personal Project:
Image

Post Reply

Who is online

Users browsing this forum: Andredron