Flipping Layered Images

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
Chendzeea
Newbie
Posts: 4
Joined: Fri May 18, 2018 8:05 pm
Contact:

Flipping Layered Images

#1 Post by Chendzeea » Sun Sep 30, 2018 4:48 pm

I'm trying to make my character images flip when using the "at right" command. I was using xzoom -1 each time but that was tedious. So I figured I'd make a If statement that I can toggle as needed. However I keep getting this error. Suggestions?

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.

File "game/images_characters.rpy", line 38: A condition must have a displayable.
if jlr == "right":

^



layeredimage janie:
if jlr == "right":
xzoom-1
else:
pass
if jostate == "jsweater":
"jsweat"

elif jostate == "jvalk":
"jvalk"
elif jostate == "jwork":
"jwork"
elif jostate == "jbike":
"jbike"
else:
"jcasual"

group face:
attribute smile:
"jsmile"
attribute mad:
"jmad"
attribute base:
"jbase"

Post Reply

Who is online

Users browsing this forum: Sylveon91