Audio and Drawings
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
-
- Newbie
- Posts: 14
- Joined: Sun Oct 22, 2006 12:19 am
- Contact:
Audio and Drawings
I have been meaning on making a game but i have two questions that need awsners since i'm not sure about them.
How big do the pics have to be and what formatt?
Can you put character voices?
How big do the pics have to be and what formatt?
Can you put character voices?
The default is 800 x 600 pixels. To save diskspace I usually use hi-quality jpegs for non-transparent images (like backgrounds), and pngs for images that need transparencies (like character sprites).
Of course you can technically set the game to any 4:3 aspect ratio. Some of the others here have used 640 x 480.
You can make the pictures much bigger than 800 x 600 if you plan to pan or zoom them, but I think there is a technical dimension limit at which point they start to crash.
You can add voice in mp3 or ogg format. You play them like any other sound, except as music (which loops).
Of course you can technically set the game to any 4:3 aspect ratio. Some of the others here have used 640 x 480.
You can make the pictures much bigger than 800 x 600 if you plan to pan or zoom them, but I think there is a technical dimension limit at which point they start to crash.
You can add voice in mp3 or ogg format. You play them like any other sound, except as music (which loops).
-
- Newbie
- Posts: 14
- Joined: Sun Oct 22, 2006 12:19 am
- Contact:
This is basically the gist of it. Obviously, some more code may be needed.init:
image background1 = "background1.jpg"
image character1 = "character1.png"
label start:
scene background1
show character1
My best advice is to download some of the many demos and partitially-complete works in this forum, and look at how people code things. It's usually in the script.rpy within the /game subdirectory.
- PyTom
- Ren'Py Creator
- Posts: 16088
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
DaFool's example was right when he typed it in, but he used quote rather then code, so the indentation is screwy. A similar example is:
Code: Select all
init:
image bg times square = "times_square.jpg"
image eileen happy = "eileen_happy.png"
$ e = Character("Eileen")
label start:
scene bg times square
show eileen happy
e "Remember, nothing is shown until dialogue or transitions take place."
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 14
- Joined: Sun Oct 22, 2006 12:19 am
- Contact:
-
- Miko-Class Veteran
- Posts: 733
- Joined: Fri Jul 07, 2006 9:58 pm
- Projects: Suna to Majo
- Location: France
- Contact:
You place your audio file in the game folder, then you simply make it play.
It'd depend on how you want them to play: as a music, as a loop, as a sfx...
If your file name is voice.ogg, you place this code in the label start block:
And remember the wiki, there is a reliable how-to section, with a -nearly- full documentation, a cookbook for special screen effects...
It'd depend on how you want them to play: as a music, as a loop, as a sfx...
If your file name is voice.ogg, you place this code in the label start block:
Code: Select all
$ renpy.sound.play("voice.ogg")
Eileen "Hey! I can even mimick Pytom's voice!"
-
- Newbie
- Posts: 14
- Joined: Sun Oct 22, 2006 12:19 am
- Contact:
Code: Select all
$ renpy.sound.stop()
Who is online
Users browsing this forum: No registered users