Page 1 of 1
I'm having problems because I just don't understand... help?
Posted: Mon Aug 05, 2013 8:39 pm
by Updown1234
The tutorial says that you can put the pics you are going to use under the game directory, and that it is accessible through the launcher... problem is... I can't find this elusive "game directory" I guess I'm the type of person who needs every step spelled out to them like... "open the jar before use."
so can someone spell it out, step by step, how to input the pictures you want to use in the game?
Re: I'm having problems because I just don't understand... h
Posted: Mon Aug 05, 2013 8:50 pm
by Googaboga
Well when you start a project on Ren'py a new folder for your project is added to your Ren'Py folder. So open your Ren'Py folder and then look for a folder that has whatever name you used for your game. Open that folder and you will see even more folders. One of the folders should be titled "game". That is the game directory. If you want to be as basic as possible you just stick whatever stuff you want in your game into that game folder.
Or you can open the Ren'Py folder click on the Ren'Py application to run Ren'Py and then look for "Open Directory". Under that should be the word "game". Click on that and it will open up the game folder for you.
Then once you've got your stiff in that folder you can define it in the script of your game so that it shows when you use it during the game. Like this for example:
Although some things like sound effects and music don't need to be defined before you use it.
Also welcome to the forum :].
Re: I'm having problems because I just don't understand... h
Posted: Tue Aug 06, 2013 12:28 am
by Updown1234
thanks! but here is another problem... I put in the picture, but when I try to insert it into the game, no matter what I try, it just says picture no found...
Re: I'm having problems because I just don't understand... h
Posted: Tue Aug 06, 2013 12:38 am
by Updown1234
and even if I put the picture in the correct folder, it still says picture not found...
no matter what picture I use, the only one that worked was the one that I took from the tutorial...
Re: I'm having problems because I just don't understand... h
Posted: Tue Aug 06, 2013 1:24 am
by Kato
Are you sure you declared it with the correct file extension? Alternatively if you paste your coding here in code tags we can let you know for sure what the issue is.
Re: I'm having problems because I just don't understand... h
Posted: Tue Aug 06, 2013 2:37 am
by Taleweaver
Ren'Py-related questions go into the Ren'Py forum.
Moved.
Re: I'm having problems because I just don't understand... h
Posted: Tue Aug 06, 2013 4:29 am
by tigersmurf
thanks! but here is another problem... I put in the picture, but when I try to insert it into the game, no matter what I try, it just says picture no found...
You need to be very precise in Ren'Py. Make certain that when you defined your image you included the correct file extension and didn't make a typo in any way.
Here's an example from my own project:
Code: Select all
image bg medbay hall = "bg/medbay_hall.png"
I have a file in a folder in my game directory that is called "bg" This indicates to me that all of my game backgrounds are in this folder.
So when I want a scene to take place in the hallway of the medical bay, I type:
Code: Select all
scene bg medbay hall with dissolve
It's not necessary to use separate folders within your game directory, but I find it extremely helpful for organization's sake. Especially with anything other than a small project.
Pay close attention to ensure that you've not made any mistake in typing. For instance, if I were to accidentally write:
My game would crash, because I have not defined an image as "medbay hall." I need to remember that I defined it as "bg medbay hall" and only that exact phrasing will work.