[SOLVED] Moveout not working properly

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
jaco6222
Newbie
Posts: 4
Joined: Tue Nov 22, 2016 4:58 am
Contact:

[SOLVED] Moveout not working properly

#1 Post by jaco6222 »

Thanks for the assistance.
I am relatively new to this forum and still don't understand lots :3
Last edited by jaco6222 on Thu Dec 15, 2016 8:16 am, edited 1 time in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Moveout not working properly

#2 Post by Ocelot »

Why are you are using 'define' there instead of properly declaring an image? I surprised it did work earlier, when it should not.

Correct way to do that:

Code: Select all

image char_1 happy = "c_1 happy.png" # Separate mood/other tags from cahracter name by space to work with RenPy native sprote management

    # Show character
    show char_1 happy with moveinright
   
    # Wait
    $ renpy.pause(0.5)
   
    # Hide character
    hide char_1 happy with moveoutleft
On a side note: next time show full error log.
< < insert Rick Cook quote here > >

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Moveout not working properly

#3 Post by xavimat »

Well, the extract of your code is missing things to understand what is going on.
Also, your error information lacks the line number where the error is located. You should look what contains that line.
I don't think this has nothing to do with moveoutleft.
Your definition is very strange, what are you trying to define? This line has no meaning at all:

Code: Select all

define char_1_happy = ("c_1 happy.png")
- If you want to define an image, look at the doc how it is done: https://www.renpy.org/doc/html/quickstart.html#images
- If you want to define a Character, look at the doc, how it is done: https://www.renpy.org/doc/html/quicksta ... characters
This part of the doc is only the quickstart. I suggest you to study it carefully.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users