[SOLVED] Python equivalent of 'show'

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
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

[SOLVED] Python equivalent of 'show'

#1 Post by Milkymalk »

Got this here:
http://www.renpy.org/doc/html/sprites.html

what is the Python equivalent of this?

Code: Select all

show expression repulsor as repulsor
I know it's renpy.show(), but if I say

Code: Select all

renpy.show(myspritemanager)
I get an error message saying sprite manager can not be split. I guess it comes from Ren'Py trying to evaluate my arguments.
If I try

Code: Select all

renpy.show('myspritemanager',myspritemanager)
Ren'Py tries to literally display a displayable called 'myspritemanager'.
Last edited by Milkymalk on Mon Jul 21, 2014 11:04 am, edited 1 time in total.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Python equivalent of 'show'

#2 Post by Asceai »

You want the 'what' argument

You need to provide a name anyway though.

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Python equivalent of 'show'

#3 Post by Milkymalk »

Ah I get it. My mistake was that I thought the second argument will automatically be passed as the 'what'. Works perfectly now :) Thank you!

As you can probably guess, I am not very experienced with actually using Python instead of Ren'Py script language.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Post Reply

Who is online

Users browsing this forum: Google [Bot]