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.
I want to move my character's side image over a bit so I can see her dialogue, but I can't figure out how x_x. I've looked at tutorials, but I just end up getting confused.
# Declare characters used by this game.
define kitty = Character ('Kitty', color="#ff8665")
define ser = Character ('Servant', color="#ffd894")
define K = Character ('Karl', color="#ffc824")
define lt = Character ('Lady Tigress', color="#ff6201")
init:
$ h = Character('Haruko', window_left_padding=160, show_side_image = Image("side_HarukoSpriteBG.png", xalign = 0.0, yalign = 1.0)
Am I suppose to put the code somewhere else?
Attachments
I am a teenager who would like, very much, to finish a visual novel ;D
I don't know much about coding, but I'll try not to be a bother.
Ok first make sure the that line of code (under the "init:") is indented 4 spaces from the left edge. Then add a ) at the very end so there are two parenthesis, like this ))
Dekeve wrote:Wow it just hit me, I completely missed it.
Ok first make sure the that line of code (under the "init:") is indented 4 spaces from the left edge. Then add a ) at the very end so there are two parenthesis, like this ))
Well, I'm not getting an error image any more. But the sprite itself is still covering the text. I changed the numbers a few times, but it never moved.
>.<
Have you get any other ideas? :c
Attachments
I am a teenager who would like, very much, to finish a visual novel ;D
I don't know much about coding, but I'll try not to be a bother.
Well this may sound kind of silly but you're image, does it have a lot of extra space on the side? Meaning does the actual image itself cut off a little before the lines start or did you create your image in the middle of a square and leave it like that? That was an issue with me a while back ^.^"
~ You know I used to be able to leap tall buildings using a jetpack? Then I got shot in the leg with an arrow T.T ~
lilyrose wrote:Well this may sound kind of silly but you're image, does it have a lot of extra space on the side? Meaning does the actual image itself cut off a little before the lines start or did you create your image in the middle of a square and leave it like that? That was an issue with me a while back ^.^"
Any suggestion is brilliant so thanks for replying
But yeah, actually! I initially started with a canvas the same size as the game screen (800 by 600) and drew the sprite in the corner, then made the background transparent. Is that what the problem is?
EDIT: OMG IT WORKED. I just resized the image and now it fitted perfectly
Thanks for all the help guys! <3
I am a teenager who would like, very much, to finish a visual novel ;D
I don't know much about coding, but I'll try not to be a bother.
lilyrose wrote:Well this may sound kind of silly but you're image, does it have a lot of extra space on the side? Meaning does the actual image itself cut off a little before the lines start or did you create your image in the middle of a square and leave it like that? That was an issue with me a while back ^.^"
You know I had started to wonder that myself and I just quick replied, suggesting we have a look at the sprite itself, but you beat me too it! Nice job!
EDIT: OMG IT WORKED. I just resized the image and now it fitted perfectly
Thanks for all the help guys! <3
Your welcome! I didn't mean to drag that out. But glad you got it fixed. Good luck with the rest of your game!