(SOLVED) Show and ATL scaleing

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
Zero_Profile
Newbie
Posts: 6
Joined: Mon Feb 17, 2014 12:22 am
Contact:

(SOLVED) Show and ATL scaleing

#1 Post by Zero_Profile »

First hi and thanks for having me / Second i'm a newb to python and Ren'Py so forgive my ignorance /

My question can I factor scale a show atl command like double its size

Code: Select all

#begin atl_image
image earth core animated:
    "Images/ani/world/ec001.png"
    pause .1
    "Images/ani/world/ec002.png"
    pause .1
    "Images/ani/world/ec003.png"
    pause .1
    "Images/ani/world/ec004.png"
    pause .1
    "Images/ani/world/ec005.png"
    pause .1
    repeat
#end atl_image
Can I input any type of property into this section to make the image double in size I rather do that then make multiple sized atl references
I'm a total newbie to this so this might be very basic but I'd appreciate if someone could give me a hand

Code: Select all

show earth core animated:
        truecenter
Last edited by Zero_Profile on Mon Feb 17, 2014 1:24 pm, edited 1 time in total.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Show and ATL scaleing

#2 Post by SundownKid »

If you want to make an image double its size over a span of 1 second you can do something like this:

Code: Select all

transform zoomin:
   xalign 0.5 yalign 0.5 xcenter 0.5 ycenter 0.5
   linear 1.0 zoom 2.0

label start:
   show picture at zoomin

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Show and ATL scaleing

#3 Post by Asceai »

Use zoom

Code: Select all

show earth core animated:
        zoom 2.0
        truecenter

Zero_Profile
Newbie
Posts: 6
Joined: Mon Feb 17, 2014 12:22 am
Contact:

Re: Show and ATL scaleing

#4 Post by Zero_Profile »

well thing is this animation is a loop of a world / however I made the graphics smaller for file size constraints / thus when I add it to my game the image is smaller then I would like it / so was hoping there was a way to scale the whole animation instead of having to scale each individual image / Because this would limit my use of that animation just to that instance and I could not use it elsewhere because of the scaled property / I would be forced to copy that code and scale the other instance as well

@Asceai trying that

Zero_Profile
Newbie
Posts: 6
Joined: Mon Feb 17, 2014 12:22 am
Contact:

Re: Show and ATL scaleing

#5 Post by Zero_Profile »

awesome that worked

for some reason I was writing it this way and would keep running into errors and I was wondering what I was doing wrong

Code: Select all

show earth core animated:
        zoom 2.0, truecenter
would not have tried that :shock:

Post Reply

Who is online

Users browsing this forum: Google [Bot]