using renpy.transition() on a screen action [SOLVED]

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
FamuFamu
Regular
Posts: 111
Joined: Thu Oct 11, 2012 4:52 pm
Contact:

using renpy.transition() on a screen action [SOLVED]

#1 Post by FamuFamu » Sat Jul 26, 2014 4:52 pm

I'm trying something simple. A screen where, whenever you press a keyboard key, it makes the screen shake, I did it using this:

Code: Select all


key "q" action [renpy.transition(vpunch), alltheotheractions]

However, when I do this, whenever something is hovered or unhovered on that same screen. the whole window shakes. Any idea what may be causing this?

Thanks in advance

EDIT: I found a solution changing the command I used, so instead of the code above I did:

Code: Select all


key "q" action [Show("anotherscreen", transition=vpunch), alltheotheractions]

That bypasses the problems that showed up with renpy.transition and makes it able to use the transition once when pressing the button.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Hojoo