Hey how stupid am i?

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
Pugnacious Pug
Newbie
Posts: 1
Joined: Fri Sep 20, 2019 9:33 pm
Contact:

Hey how stupid am i?

#1 Post by Pugnacious Pug »

Hey so im doing a bit of testing and i really cant figure out how to make the "at" statements work. i managed to make the images appear but they always just stay centered

BTW here is my code
# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.
init:
define h = Character("Haruka Kawai")
define m = Character("Miyu Sakurai")
image miyu = "miyu.png"
# The game starts here.

label start:

# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.

scene bg room

# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.

show expression "Haruka.png" as Haruka at right
show miyu at right

# These display lines of dialogue.

h "Hello there! Nyace to meet you."

h "Im Haruka Kawai , Ultimate Veterinyarian"

m "Don't you mean Veterinarian?"

h "no"

m "ok then. im Miyu Sakurai , Ultimate Journalist"

# This ends the game.

return

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Hey how stupid am i?

#2 Post by isobellesophia »

Code: Select all

show m at left with dissolve
m "Hello!"
show h at right with dissolve
h "Hi!"
Its not that you were stupid, you need to watch or read the documemtations or in the Tutorial to get you started.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
namastaii
Eileen-Class Veteran
Posts: 1350
Joined: Mon Feb 02, 2015 8:35 pm
Projects: Template Maker for Ren'Py, What Life
Github: lunalucid
Skype: Discord: lunalucid#1991
Soundcloud: LunaLucidMusic
itch: lunalucid
Location: USA
Contact:

Re: Hey how stupid am i?

#3 Post by namastaii »

You can use xpos or xalign if you want something more specific but you wouldn't use "at" for that.

Code: Select all

show miyu:
    xalign 0.6
Though I'm not entirely sure what "show expression "Haruka.png" as Haruka at right" is for. Maybe that's something in the documentation I missed once upon a time but you can simply show haruka
(I'd always just define these images before start)

Post Reply

Who is online

Users browsing this forum: Ocelot, Semrush [Bot]