Need help with transform

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
bartsimpson
Newbie
Posts: 1
Joined: Thu Jan 04, 2018 7:52 am

Need help with transform

#1 Post by bartsimpson »

I want my character do a little jumpy movement every time he begins speaking.

But I'm a noob and my code doesn't work and I don't know how to fix it lol please help

Code: Select all

init python:
    def jumpWhenSay (event, interact=True, **kwargs):
        if not interact:
            return
        if event == "begin":
            renpy.transform(jumpyMovement)
    
transform jumpyMovement:
    linear 0.1 yalign 0.6
    linear 0.1 yalign 0.0
    repeat 2

define m = Character("my character", callback=jumpWhenSay)

Post Reply

Who is online

Users browsing this forum: No registered users