HELP! Can't move characters "at right/left"

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
Sukori
Newbie
Posts: 3
Joined: Sat May 08, 2010 4:28 pm
Contact:

HELP! Can't move characters "at right/left"

#1 Post by Sukori »

Hey everyone D:
I'm having this one big problem...my characters are overlapping each other.
So i looked it up and it saus to use an "at right" or "at left" statement after the "show" statement.
adding the "at right" or left though does nothing. theyre still overlapping each other.

for example, ive got:
s "mmm....huh?"

show katsy unhappy at right
with fade

everything there works but the AT statement.
My picture for "katsy" is an 800x600 .png picture with everything transparent but character herself (same with all the others)

Can someone shed some light on this for me?
Cause it's hard to progress with such a problem : <
thnx.

nagirinara
Regular
Posts: 70
Joined: Mon Apr 12, 2010 1:01 pm
Projects: World Academy, Galaxy Angel: A New Dawn
Location: Vancouver, Washington, USA
Contact:

Re: HELP! Can't move characters "at right/left"

#2 Post by nagirinara »

Could you please show the code in the code tags? It'd be easier to understand what the problem is that way.
It's Nagi Rinara: Nagi-san or Rinara-chan, not Nagirinara-san. <--- Seriously, don't do it.

Currently making:
World Academy - Version Gilbo
Currently helping:
Galaxy Angel: A New Dawn
Finished:
None =T.T=

Nanashiko
Regular
Posts: 69
Joined: Mon Apr 12, 2010 6:15 pm
Location: My Dugeon
Contact:

Re: HELP! Can't move characters "at right/left"

#3 Post by Nanashiko »

Is your window your running is it on 800 x 600 as well? If so try cropping down the image to something smaller than the window and see if that works.

Sukori
Newbie
Posts: 3
Joined: Sat May 08, 2010 4:28 pm
Contact:

Re: HELP! Can't move characters "at right/left"

#4 Post by Sukori »

nagirinara wrote:Could you please show the code in the code tags? It'd be easier to understand what the problem is that way.
I'm sorry, is this what you were looking for? D;

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

init:
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
image bg 1 = "bg1.png"
image sukori sleepy = "sleepy.png"
image sukori happy = "happy.png"
image sukori sigh = "sigh.png"
image katsy happy = "kamhappy.png"
image katsy unhappy = "kamunhappy.png"
image katsy bye = "kambye.png"
image walking bg = "walking.png"
image blackout = "blackout.png"
image nikkiblur1 = "nikkiblur1.png"
image nikkiblur2 = "nikkiblur2.png"
image nikki worry = "nikkiworry.png"
image nikki happy = "nikkihappy.png"
image nikki sad = "nikkisad.png"
image nikki excited = "nikkiexcited.png"
image bg hallway = "bghallway.png"

# Declare characters used by this game.
$ s = Character('Sukori', color="#ff0099")
$ k = Character('Katsy', color="#c8ffc8")
$ u = Character('???', color="#99ff66")
$ n = Character('Nikki', color="#99ff66")


# The game starts here.
label start:
scene bg 1
with fade
play music "08 - INTERLUDE.mp3"

s ".......mm..."

k "Hey! Sukori.... Sukori!"
with fade

show sukori sleepy
with dissolve

s "mmm....huh?"

show katsy unhappy at right
with fade

Srry if it's not :/ fairly new to this.
ty

nagirinara
Regular
Posts: 70
Joined: Mon Apr 12, 2010 1:01 pm
Projects: World Academy, Galaxy Angel: A New Dawn
Location: Vancouver, Washington, USA
Contact:

Re: HELP! Can't move characters "at right/left"

#5 Post by nagirinara »

Code: Select all

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

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"
    image bg 1 = "bg1.png"
    image sukori sleepy = "sleepy.png"
    image sukori happy = "happy.png"
    image sukori sigh = "sigh.png"
    image katsy happy = "kamhappy.png"
    image katsy unhappy = "kamunhappy.png"
    image katsy bye = "kambye.png"
    image walking bg = "walking.png"
    image blackout = "blackout.png"
    image nikkiblur1 = "nikkiblur1.png"
    image nikkiblur2 = "nikkiblur2.png"
    image nikki worry = "nikkiworry.png"
    image nikki happy = "nikkihappy.png"
    image nikki sad = "nikkisad.png"
    image nikki excited = "nikkiexcited.png"
    image bg hallway = "bghallway.png"
    
    # Declare characters used by this game.
    $ s = Character('Sukori', color="#ff0099")
    $ k = Character('Katsy', color="#c8ffc8")
    $ u = Character('???', color="#99ff66")
    $ n = Character('Nikki', color="#99ff66")


# The game starts here.
label start:
    scene bg 1
    with fade
    play music "08 - INTERLUDE.mp3"
    
    s ".......mm..."

    k "Hey! Sukori.... Sukori!"
    with fade
    
    show sukori sleepy 
    with dissolve
    
    s "mmm....huh?"
    
    show katsy unhappy at right
    with fade
Okay, I meant like this... so let me look at it... Here's a couple variables for you use with movement.

Code: Select all

$ move = MoveTransition(1.0)
$ movefast = MoveTransition(0.5)
To get images to "move" you would do something like this.

Code: Select all

show katsy at right with move
I never tried having two "with" attributes, so idk about that. You could also do this:

Code: Select all

show katsy at right with movefast
If you used those variables in your init block, you can use them to move your characters around easily.

Is that what you were looking for?
It's Nagi Rinara: Nagi-san or Rinara-chan, not Nagirinara-san. <--- Seriously, don't do it.

Currently making:
World Academy - Version Gilbo
Currently helping:
Galaxy Angel: A New Dawn
Finished:
None =T.T=

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: HELP! Can't move characters "at right/left"

#6 Post by PyTom »

The problem here is that your character picture is 800x600. Ren'Py tries to move it, but there's really only one place it can fit on the screen, so it doesn't actually move anywhere. If the picture was less than 800 pixels wide, there wouldn't be a problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Sukori
Newbie
Posts: 3
Joined: Sat May 08, 2010 4:28 pm
Contact:

Re: HELP! Can't move characters "at right/left"

#7 Post by Sukori »

nagirinara wrote:

Code: Select all

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

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"
    image bg 1 = "bg1.png"
    image sukori sleepy = "sleepy.png"
    image sukori happy = "happy.png"
    image sukori sigh = "sigh.png"
    image katsy happy = "kamhappy.png"
    image katsy unhappy = "kamunhappy.png"
    image katsy bye = "kambye.png"
    image walking bg = "walking.png"
    image blackout = "blackout.png"
    image nikkiblur1 = "nikkiblur1.png"
    image nikkiblur2 = "nikkiblur2.png"
    image nikki worry = "nikkiworry.png"
    image nikki happy = "nikkihappy.png"
    image nikki sad = "nikkisad.png"
    image nikki excited = "nikkiexcited.png"
    image bg hallway = "bghallway.png"
    
    # Declare characters used by this game.
    $ s = Character('Sukori', color="#ff0099")
    $ k = Character('Katsy', color="#c8ffc8")
    $ u = Character('???', color="#99ff66")
    $ n = Character('Nikki', color="#99ff66")


# The game starts here.
label start:
    scene bg 1
    with fade
    play music "08 - INTERLUDE.mp3"
    
    s ".......mm..."

    k "Hey! Sukori.... Sukori!"
    with fade
    
    show sukori sleepy 
    with dissolve
    
    s "mmm....huh?"
    
    show katsy unhappy at right
    with fade
Okay, I meant like this... so let me look at it... Here's a couple variables for you use with movement.

Code: Select all

$ move = MoveTransition(1.0)
$ movefast = MoveTransition(0.5)
To get images to "move" you would do something like this.

Code: Select all

show katsy at right with move
I never tried having two "with" attributes, so idk about that. You could also do this:

Code: Select all

show katsy at right with movefast
If you used those variables in your init block, you can use them to move your characters around easily.

Is that what you were looking for?
YES! Thank you very much that did work :>
Very very much appreciated! :D

nagirinara
Regular
Posts: 70
Joined: Mon Apr 12, 2010 1:01 pm
Projects: World Academy, Galaxy Angel: A New Dawn
Location: Vancouver, Washington, USA
Contact:

Re: HELP! Can't move characters "at right/left"

#8 Post by nagirinara »

No problem, Sukori. =^.^= Glad to help.
It's Nagi Rinara: Nagi-san or Rinara-chan, not Nagirinara-san. <--- Seriously, don't do it.

Currently making:
World Academy - Version Gilbo
Currently helping:
Galaxy Angel: A New Dawn
Finished:
None =T.T=

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: HELP! Can't move characters "at right/left"

#9 Post by Jake »

PyTom wrote:The problem here is that your character picture is 800x600. Ren'Py tries to move it, but there's really only one place it can fit on the screen, so it doesn't actually move anywhere.
To explain further - using the default settings:

- "at center" (default) means "place the sprite's centre in the centre of the screen
- "at left" means "place the sprite's left edge against the left edge of the screen
- "at right" means "place the sprite's right edge against the right edge of the screen.

So if you have an 800x600 sprite in an 800x600 window, the sprite's left edge is against the left edge of the screen, and the sprite's centre is at the centre of the screen, and the sprite's right edge is at the right edge of the screen all at the same time.
Server error: user 'Jake' not found

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]