help with renpy

A place for game announcements, and for people to discuss games being made.
Forum rules
Please read the sticky before creating a new topic. Linking to Kickstarter/Crowdfunded games requires a demo. Updates to Patreon-backed games may be posted once every 2 months. Adult content should not be posted in this forum.
Post Reply
Message
Author
FyreMakesGames
Newbie
Posts: 1
Joined: Sat Apr 15, 2017 9:28 pm
Contact:

help with renpy

#1 Post by FyreMakesGames »

heres my script can u edit it so that this

http://nobu-nori.deviantart.com/art/Help-675149228
doesn't happen
I want it on the side like in the tutorial
please and thanks


# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define n = Character("Nova")
define y = Character("You")
define t = Character("Tallflower", image = "Tallflower",)
# 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 nova

# These display lines of dialogue.

"Greetings,"

n "I am Nova I shall be you helper through you life as a warrior cat."

n "Once you are ready let's being."
$ player_name = renpy.input("What is your name, Magical Boy?")

$ player_name = player_name.strip()

n "Nice to you meet you, %(player_name)skit!"
scene nursery
define e = Character("Eileen", image="eileen")





t "Wake up %(player_name)skit it's time to see the world."
menu:
"No! I want to go back to sleep!":
jump backtosleep
label backtosleep:
y "Goes back to sleep."
# This ends the game.

return

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: help with renpy

#2 Post by Imperf3kt »

Could you use the code tags please, so indentation is preserved.

also, you don't seem to have defined bg room, nova (image) or default playername (all of these go before the start)

I'm not even sure what is happening here

Code: Select all

n "Nice to you meet you, %(player_name)skit!"
scene nursery
define e = Character("Eileen", image="eileen")





t "Wake up %(player_name)skit it's time to see the world."
menu:
You also don't need to jump to a label, if it is directly after a menu, the game will continue from that point if there is nothing between.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: help with renpy

#3 Post by indoneko »

1. Please use forum's image attachment instead of linking to DA.

2. That side image is too big. I would consider cropping it, or resize it to take less screen space.

3. Where did you define your image (and side image)? I don't see it in your code

4. Don't put any character definition inside label start:
Put it at the beginning of your script instead.

5. Please use

Code: Select all

 tag when copy pasting your script
My avatar is courtesy of Mellanthe

Post Reply

Who is online

Users browsing this forum: No registered users