Path doubt

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
runs
Regular
Posts: 41
Joined: Mon Nov 28, 2011 12:31 pm
Location: Spain
Contact:

Path doubt

#1 Post by runs »

Another newie/silly question...

The background scene images can be loaded from subdirectories into the "game" folder, but not the normal images. How can I order the images by folders? :?

manga_otaku
Veteran
Posts: 413
Joined: Fri May 20, 2011 1:27 pm
Completed: [KN] Saving Project: Blind? (Part One)
Contact:

Re: Path doubt

#2 Post by manga_otaku »

I'm not sure what you mean, but if you want to separate the bgs from your sprites inside the game directory, when defining them you would have to put the path direction.
E.g. If your bgs are in the bg folder and you want the school.jpg image, you'd put:

Code: Select all

image school = "bg/school.jpg"
Is this what you wanted? xD Sorry if it isn't. Just think of it as rambling if that's the case xD

EDIT:
Moreover, if you were defining a character, and you'd also put a subfolder in the char folder you'd put:

Code: Select all

image chappy = "char/[insert char name]/happy.png"
Where [insert char name] is the name of the character folder. E.g. If it was a happy expression of Ken, you'd put:

Code: Select all

image khappy = "char/ken/happy.png"
Projects:
WIP|[KN] Day Of Reckoning|
Completed|[KN] Saving Project Blind: Part One|[KN] Saving Project Blind: Part Two|[KN] Saving Project Blind: Final Part|
Is available to help with proof-reading (Grammar freak...) Maybe voice-acting in the near future x]

User avatar
runs
Regular
Posts: 41
Joined: Mon Nov 28, 2011 12:31 pm
Location: Spain
Contact:

Re: Path doubt

#3 Post by runs »

manga_otaku wrote:I'm not sure what you mean, but if you want to separate the bgs from your sprites inside the game directory, when defining them you would have to put the path direction.
E.g. If your bgs are in the bg folder and you want the school.jpg image, you'd put:

Code: Select all

image school = "bg/school.jpg"
Is this what you wanted? xD Sorry if it isn't. Just think of it as rambling if that's the case xD

EDIT:
Moreover, if you were defining a character, and you'd also put a subfolder in the char folder you'd put:

Code: Select all

image chappy = "char/[insert char name]/happy.png"
Where [insert char name] is the name of the character folder. E.g. If it was a happy expression of Ken, you'd put:

Code: Select all

image khappy = "char/ken/happy.png"
Thanks! It works like a charm!

manga_otaku
Veteran
Posts: 413
Joined: Fri May 20, 2011 1:27 pm
Completed: [KN] Saving Project: Blind? (Part One)
Contact:

Re: Path doubt

#4 Post by manga_otaku »

No problem :)
Projects:
WIP|[KN] Day Of Reckoning|
Completed|[KN] Saving Project Blind: Part One|[KN] Saving Project Blind: Part Two|[KN] Saving Project Blind: Final Part|
Is available to help with proof-reading (Grammar freak...) Maybe voice-acting in the near future x]

Post Reply

Who is online

Users browsing this forum: No registered users