[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
User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

[Solved]Doubt about the screen

#1 Post by zabuzaeldemonio » Tue Mar 20, 2018 11:55 am

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.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 12:58 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#3 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:06 pm

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

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 1:13 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#5 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:15 pm

I think in essence, yes

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 1:31 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#7 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:35 pm

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

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 1:37 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#9 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:41 pm

It is on the image button

Code: Select all

action Jump ("remember")

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 1:45 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#11 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:47 pm

Yes to the three questions.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 1:49 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#13 Post by zabuzaeldemonio » Tue Mar 20, 2018 1:52 pm

Thank you very much for the help, and I regret having expressed the problem badly

User avatar
trooper6
Lemma-Class Veteran
Posts: 3617
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 » Tue Mar 20, 2018 2:06 pm

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

User avatar
zabuzaeldemonio
Regular
Posts: 93
Joined: Sun Jan 08, 2017 7:24 pm
Contact:

Re: Doubt about the screen

#15 Post by zabuzaeldemonio » Tue Mar 20, 2018 2:09 pm

Full scene.

Post Reply

Who is online

Users browsing this forum: Imperf3kt