Moving Characters

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
jhernandezgames
Regular
Posts: 27
Joined: Mon Jul 29, 2013 8:36 pm
Organization: JHernandezgames
Location: Perth Amboy, Nj
Contact:

Moving Characters

#1 Post by jhernandezgames » Tue Aug 06, 2013 6:58 pm

Hello, I am trying to move a character from left screen to right screen.
Following the tutorial I keep on getting error messages, telling me to add spaces, I add spaces then the error messages say to take away the spaces, what's going on? All I want to do is transition my character to cross the screen.

User avatar
Talann
Regular
Posts: 132
Joined: Thu May 09, 2013 12:02 pm
Projects: Shooting Stars, REBORN
Contact:

Re: Moving Characters

#2 Post by Talann » Tue Aug 06, 2013 7:40 pm

Pretty simple, you don't need any spaces. Just copy and paste this code into your game and see if it works.

Code: Select all

# You can place the script of your game in this file.

# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"

image ehappy = "ehappy.png"

# Declare characters used by this game.
define e = Character('Emily', color="#c8ffc8")


# The game starts here.
label start:

    show ehappy
    e "I will move from centre to right, then from right to left."
    
    show ehappy at right with dissolve
    pause .2
    e "I am now standing at the right position."
    
    show ehappy at left with dissolve
    pause 2
    e "I am now standing at the left position."

jhernandezgames
Regular
Posts: 27
Joined: Mon Jul 29, 2013 8:36 pm
Organization: JHernandezgames
Location: Perth Amboy, Nj
Contact:

Re: Moving Characters

#3 Post by jhernandezgames » Tue Aug 06, 2013 7:43 pm

Ah, thanks alot man. Saved me alot of revision on my script there.

User avatar
Talann
Regular
Posts: 132
Joined: Thu May 09, 2013 12:02 pm
Projects: Shooting Stars, REBORN
Contact:

Re: Moving Characters

#4 Post by Talann » Tue Aug 06, 2013 8:07 pm

@jhernandezgames no problem !

Post Reply

Who is online

Users browsing this forum: Alex, blakjak, Google [Bot]