Screen action to show displayable?[SOLVED]
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.
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.
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
Screen action to show displayable?[SOLVED]
The Show() Screen Action can only show another Screen, yeah? (Same with Hide() I suppose?) But is there a way to use it to manipulate displayables on the 'main' layer, like sprites?
Last edited by TellerFarsight on Wed Sep 13, 2017 2:57 pm, edited 3 times in total.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: Screen action to show displayable?
Use Function() and renpy.show() in action, perhaps?
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
Re: Screen action to show displayable?
So I tried to use that to show an image at a certain transform:
and it returns the error "'ATLTransform' object is not iterable"
The screen that has the button is also a called screen, by the way, if that's maybe the problem.
Code: Select all
Function(renpy.show, "my_image", at_list=my_transform)
The screen that has the button is also a called screen, by the way, if that's maybe the problem.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: Screen action to show displayable?
"at_list" taking a list of transforms. So the code should be:
Code: Select all
Function(renpy.show, "my_image", at_list=[my_transform])
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
Re: Screen action to show displayable?
Got it. Not iterable because it's expecting a list. It works now, thank you!
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
Re: Screen action to show displayable?
Alright, another question:
If I do this, it tells me "char_pos" is not defined. I have defined "Eileen_pos" and I've called the screen seelct_target(Eileen). Is there a way to pass the argument down to the transform name? Oh, and also "Eileen_square" is not being called as I thought.
Code: Select all
screen select_target(char):
button:
action Function(renpy.show, "char_square", at_list=[char_pos])
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: Screen action to show displayable?
About the Eileen_square, you just have to combine a variable with string. I have no idea about the transform, though. This would be the way I do it, just have to add the transform in manually.
Code: Select all
screen select_target(char, atl=[]):
button:
action Function(renpy.show, char + "_square", at_list=atl)
- TellerFarsight
- Veteran
- Posts: 230
- Joined: Sun Jun 04, 2017 8:09 pm
- Projects: Vora, Secrets Untold
- Location: Toronto, ON
- Contact:
Re: Screen action to show displayable?
Okay, I forgot about adding more arguments to the screen. That solved a lot of my problems, actually. Thanks!
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]