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.
-
thehay95
- Newbie
- Posts: 1
- Joined: Wed Sep 05, 2018 2:38 am
-
Contact:
#1
Post
by thehay95 » Wed Sep 05, 2018 2:41 am
Simple question, but I've been trying everything to get a code to work where the character slides downwards off screen (he's falling onto the floor so I wanna make it kinda sudden?
like..
Code: Select all
"Line of dialog"
pause 0.5
## character quickly sliding down offscreen, immediately transitioning to:
scene vcg1 with vpunch
-
DannX
- Regular
- Posts: 99
- Joined: Mon Mar 12, 2018 11:15 am
-
Contact:
#2
Post
by DannX » Wed Sep 05, 2018 8:55 am
If I understand correctly, what you want can be done with
ATL (that's Animation and Transformation Language):
Code: Select all
transform slide_down:
linear .5 ypos 2. #if using floating numbers you can omit the 0 to save yourself some typing
label start:
scene vcg1
show eileen at truecenter
"Line of dialog"
pause .5
show eileen at slide_down
pause .1
scene vcg1 with vpunch
pause .1
"Ouch!"
return
-
Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
-
Contact:
#3
Post
by Donmai » Wed Sep 05, 2018 6:10 pm
Yes, ATL transforms always give you better results. You will find another "falling to the ground" example here:
viewtopic.php?p=402066#p402066
Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_