Zoom transform stacking weirdly

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
User avatar
Dreadwing93
Regular
Posts: 30
Joined: Mon May 20, 2013 1:44 am
Projects: 0xE125: Crimson Spiral
Contact:

Zoom transform stacking weirdly

#1 Post by Dreadwing93 » Tue Nov 04, 2014 12:25 am

Code: Select all

init:
    image girl = Placeholder("girl")

    transform big:
        zoom 1.5

# The game starts here.
label start:
    show girl
    "Normal size"
    show girl at big
    "Big size"
    show girl at big:
    "Bigger than intended."

    return
If I apply a transform with the zoom property to an image, then apply it again with an ATL block this time, then the transform gets applied twice.
I think when you're using an ATL block, the transform is also treated like ATL, resulting in some strange behavior.
I'm not sure if this is intended bahavior or not, but it's certainly non-intuitive. It's really frustrating. I would expect the transform to act the same whether I have an ATL block or not.

Another similar problem I've run into, not sure if they're connected:

Code: Select all

init:
    image girl2:
        Placeholder("girl")
        zoom 0.5

# The game starts here.
label start:
    show girl2
    "Half size, as expected."
    show girl2:
    "Quarter size!?"
    return
I put a bit of ATL in the image definition, and it seems to be being applied twice. I have no idea why.

Is this a bug?

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Zoom transform stacking weirdly

#2 Post by nyaatrap » Fri Nov 07, 2014 9:59 am

This is interesting behavior, and I also think it's a kind of bug. Not serious though, because you can easily avoid this bug.

User avatar
Milkymalk
Miko-Class Veteran
Posts: 752
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Zoom transform stacking weirdly

#3 Post by Milkymalk » Fri Nov 07, 2014 1:11 pm

I encountered that too, but me being me I thought it to be a mistake on my side.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Post Reply

Who is online

Users browsing this forum: _ticlock_