Page 1 of 1

Moving Characters

Posted: Tue Aug 06, 2013 6:58 pm
by jhernandezgames
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.

Re: Moving Characters

Posted: Tue Aug 06, 2013 7:40 pm
by Talann
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."

Re: Moving Characters

Posted: Tue Aug 06, 2013 7:43 pm
by jhernandezgames
Ah, thanks alot man. Saved me alot of revision on my script there.

Re: Moving Characters

Posted: Tue Aug 06, 2013 8:07 pm
by Talann
@jhernandezgames no problem !