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
Hey how stupid am i?
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.
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.
-
- Newbie
- Posts: 1
- Joined: Fri Sep 20, 2019 9:33 pm
- Contact:
- 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?
Code: Select all
show m at left with dissolve
m "Hello!"
show h at right with dissolve
h "Hi!"
- 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?
You can use xpos or xalign if you want something more specific but you wouldn't use "at" for that.
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)
Code: Select all
show miyu:
xalign 0.6
(I'd always just define these images before start)
Who is online
Users browsing this forum: No registered users