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.
-
vbkaisetsu
- Newbie
- Posts: 4
- Joined: Fri Aug 17, 2012 12:25 am
-
Contact:
#1
Post
by vbkaisetsu » Fri Aug 17, 2012 12:49 am
Hi,
I want to apply a transform to the dialogue and I found Character's show_transform property.
This is described at #2 of
http://lemmasoft.renai.us/forums/viewto ... 6&start=30
However, I can't find the usage of it.
I ran the following code but it doesn't work:
Code: Select all
init python:
def move_func(d, st, at):
d.xpos = 100
return 0
define j = Character("John", show_transform=Transform(function=move_func))
label start:
j "aaaaaaaa"
How to use this property?
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Fri Aug 17, 2012 11:25 am
That's obsoleted by the screens based code. To use it today, you'd have to put "at show_transform" at an appropriate place in the say screen.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
vbkaisetsu
- Newbie
- Posts: 4
- Joined: Fri Aug 17, 2012 12:25 am
-
Contact:
#3
Post
by vbkaisetsu » Fri Aug 17, 2012 12:03 pm
Hi!
Thanks. I added "at" to screens.rpy and it works.
Users browsing this forum: No registered users