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.
-
ChibbiNation
- Newbie
- Posts: 9
- Joined: Sat Nov 19, 2016 11:29 pm
- Tumblr: ChibbiNation
- Deviantart: ChibbiNation
- Location: New York, NY
-
Contact:
#1
Post
by ChibbiNation » Sat Nov 19, 2016 11:37 pm
Hi everyone:
I'm a total noob on Ren'py, so I'm totally stuck in one issue. I get a background image to show with no problems, but as soon as I define a character to use a side image, the background disappears completely, and I only get the character image with a transparent background.
This is what I have so far:
Code: Select all
# Declare images used by this game.
image bg lecturehall = "lecturehall.jpg"
# The game starts here.
label start:
$ bl_game = False
scene bg lecturehall
with fade
define e = Character("Eileen", image="eileen")
image eileen happy = "eileen_happy.png"
image eileen concerned = "eileen_concerned.png"
image side eileen happy = "side_eileen_happy.png"
image side eileen = "side_eileen.png"
label start:
show eileen happy
e "hey"
e concerned "again, hey"
return
I would seriously appreciate any guidance on this. I did a bunch of searches for this problem and I couldn't find anything that could help me out. Thanks in advance!
-
Pomeranian
- Regular
- Posts: 33
- Joined: Wed Oct 12, 2016 6:52 pm
-
Contact:
#2
Post
by Pomeranian » Sat Nov 19, 2016 11:45 pm
You have two label starts, and your indentation is incorrect. Also, you have to define images before the game starts.
Code: Select all
# Declare images used by this game.
define e = Character("Eileen", image="eileen")
image eileen happy = "eileen_happy.png"
image eileen concerned = "eileen_concerned.png"
image side eileen happy = "side_eileen_happy.png"
image side eileen = "side_eileen.png"
image bg lecturehall = "lecturehall.jpg"
# The game starts here.
label start:
$ bl_game = False
scene bg lecturehall with fade
show eileen happy
e "hey"
e concerned "again, hey"
return
-
ChibbiNation
- Newbie
- Posts: 9
- Joined: Sat Nov 19, 2016 11:29 pm
- Tumblr: ChibbiNation
- Deviantart: ChibbiNation
- Location: New York, NY
-
Contact:
#3
Post
by ChibbiNation » Sun Nov 20, 2016 12:18 am
That solved it! I got an indentation error on Line 19 of your corrected code, but I deleted a character on that line and line 20, and now it works like a charm! Thanks so much again!
Users browsing this forum: No registered users