Calling in "Say" screen from other screens

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
Elementario
Newbie
Posts: 2
Joined: Wed Oct 10, 2018 4:26 am
Contact:

Calling in "Say" screen from other screens

#1 Post by Elementario » Wed Oct 10, 2018 5:33 am

So, i am making a game and i am stuck at this part of coding
I use imagebuttons for all the mapping and when you click a character UI shows up with options like "Greet", "Apologize", etc (Also imagebuttons)
Now, here in the imagebutton I use action[Call "label"]
The problem is when i call a label to trigger the dialogue, all the present screens are cleared and only black screen is shown
https://i.imgur.com/RRECKev.jpg
https://i.imgur.com/lxzarcg.jpg
https://i.imgur.com/vxzHDWV.jpg
(Also, i am a noob and can't seem to figure out how to upload images, it keeps saying "not possible to determine the dimensions of the image" )
So as you can see, this happens
Is there a way to Show a label or maybe Show a "say" screen so that the dialogue is shown as in the 3rd image but everything else also stays on the screen
Please help

Code: Select all

screen UI_i_int_op_basic():

    #Greet
    imagebutton:
       
        auto "/images/UI/Greet_%s.png"
        tooltip "Greet."
        focus_mask True
        mouse "imagemap"

        if sl_eva:
            action[Hide("UI_i_int_op_basic"), Hide("UI_i_int"), Hide("UI_i"), Call("aur_eva")]
            
label eva_grt:
    eva "Hi there."
    $ sl_eva = False
    call screen UI_h
    
There are other screens in the background, which get cleared when calling a lable
Last edited by Elementario on Wed Oct 10, 2018 5:53 am, edited 1 time in total.

User avatar
Remix
Eileen-Class Veteran
Posts: 1017
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Calling in "Say" screen from other screens

#2 Post by Remix » Wed Oct 10, 2018 5:38 am

A label is only a known point in the script. It will not clear any screens, backgrounds or alter any settings unless you tell it to.

Are you using a line like " scene nnnnnn " in the label?

If so, remove that or recode it to only remove the items you want

Realistically, we'd need to see the code, not just pics, to help further
Mad Scientist Todo List:
  • Finish Improved Event Handler
  • Implement DragonBones animation as a Creator Defined Container
  • Finish Catmull-Rom Spline pathing
  • Finish Bitmask collision and rebound vector system
  • Develop time based building mechanic
  • Others
  • *Find a superb artist and actually write a game*

Elementario
Newbie
Posts: 2
Joined: Wed Oct 10, 2018 4:26 am
Contact:

Re: Calling in "Say" screen from other screens

#3 Post by Elementario » Wed Oct 10, 2018 6:19 am

I put in the code, i haven't used any scene in the label, it still clears the screen

Post Reply

Who is online

Users browsing this forum: No registered users