I need to use Python instead of ATL in an animation, but have no idea how to make that animation be linear (ideally it would be ellastic, but I can settle for linear or try to modify it once I learn how to do it linearly). At the moment this is my code:
Code: Select all
init python:
import random
def slotland1a(trans, st, at):
landing = random.randint(0,3)*15 + 270
trans.ypos = 315 - (315-landing)*st
if st>1.0:
return None
else:
return 0Code: Select all
image slota:
"slota.png"
xpos 212
ypos 315
block:
linear 0.5 ypos 270
ypos 315
repeat 5
function slotland1a
pause 1.0
repeatCan someone tell me what I'm doing wrong, or show me a different way to do linear warps on python?
