ATL: Ease and Xpos?

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
ArizaLuca
Veteran
Posts: 240
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

ATL: Ease and Xpos?

#1 Post by ArizaLuca » Wed Jun 26, 2019 5:33 pm

Two separate questions that I feel posting separate forums would be weird.

1) How do you use ease? Is it like how you put 'linear' in front of something and it moves?

2) I'm trying to use some code that goes like this:

Code: Select all

transform floating:
    xpos 0.5 ypos 0.5
    linear ypos 0.4
    linear ypos 0.5
    pause 2.0
    repeat
but upon trying to test it, the code says:

Code: Select all

I'm sorry, but an uncaught exception occurred.

Compiling ATL code at game/script.rpy:97
  File "game/script.rpy", line 108, in script
    show mm_star at floating
Exception: Expression u'0.4' is not an ATL transform, and so cannot be included in an ATL interpolation.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 108, in script
    show mm_star at floating
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/ast.py", line 1169, in execute
    show_imspec(self.imspec, atl=getattr(self, "atl", None))
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/ast.py", line 1139, in show_imspec
    atl=atl)
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/exports.py", line 717, in show
    sls.add(layer, img, key, zorder, behind, at_list=at_list, name=name, atl=atl, default_transform=default_transform, transient=transient)
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/display/core.py", line 1071, in add
    thing._show()
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/display/transform.py", line 1051, in _show
    super(ATLTransform, self)._show()
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/display/transform.py", line 1017, in _show
    self.update_state()
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/display/transform.py", line 1039, in update_state
    fr = self.execute(self, self.st, self.at)
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/atl.py", line 516, in execute
    block = self.compile()
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/atl.py", line 484, in compile
    block = self.atl.compile(self.context)
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/atl.py", line 679, in compile
    statements = [ i.compile(ctx) for i in self.statements ]
  File "/Users/arizaluca/Desktop/renpy-6.99.13-sdk/renpy/atl.py", line 947, in compile
    raise Exception("Expression %r is not an ATL transform, and so cannot be included in an ATL interpolation." % expr)
Exception: Expression u'0.4' is not an ATL transform, and so cannot be included in an ATL interpolation.

Darwin-18.0.0-x86_64-i386-64bit
Ren'Py 7.2.2.491
Dream Theory 1.0
Wed Jun 26 17:33:01 2019
What's going on??? I've also tried the coordinates by pixel (like 200 or whatever).

drKlauz
Regular
Posts: 187
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: ATL: Ease and Xpos?

#2 Post by drKlauz » Wed Jun 26, 2019 5:58 pm

Try:

Code: Select all

transform floating:
    pos (0.5,0.5)
    easein 1.0 ypos 0.4
    easeout 1.0 ypos 0.5
    pause 2.0
    repeat

User avatar
ArizaLuca
Veteran
Posts: 240
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: ATL: Ease and Xpos?

#3 Post by ArizaLuca » Wed Jun 26, 2019 6:10 pm

Ah, thank you!

User avatar
TAEKO
Newbie
Posts: 21
Joined: Mon Jul 23, 2018 3:24 am
Contact:

Re: ATL: Ease and Xpos?

#4 Post by TAEKO » Wed Jun 26, 2019 10:48 pm

You can also replace linear with other easein wrappers.
Refer to this helpful thread: viewtopic.php?t=35749
Personally, I always use easein_quad
Don't read me...
Seriously don't.
Just kidding. I'm just an awkward potato who doesn't know what to say in my signature...

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], hell_oh_world