Advertisement
barsunduk

renpy customize moveinleft, moveinright etc

May 4th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. # как можно заменить стандартные transition:
  2. init python:
  3.     mtime = 1.5 # время в пути
  4.     moveinleft = MoveTransition(mtime, enter=_moveleft)
  5.     moveinright = MoveTransition(mtime, enter=_moveright)
  6.     moveoutleft = MoveTransition(mtime, leave=_moveleft)
  7.     moveoutright = MoveTransition(mtime, leave=_moveright)
  8. init:
  9.     image t = Text("{size=128}@")
  10. label start:
  11.     show t with moveinleft
  12.     hide t with moveoutright
  13.     show t with moveinright
  14.     # а можно прямо так, если нужно поменять "время в пути" на лету:
  15.     hide t with MoveTransition(2.0, leave=_moveright)
  16.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement