In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
papiersam
Veteran
Posts: 231 Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:
#1
Post
by papiersam » Fri Dec 30, 2016 7:08 pm
Code: Select all
label start:
call screen a
screen a:
add "#fff"
textbutton "Menu" action Show('b', transition=wiperight)
screen b:
frame:
xsize 300
yalign 1.0
background "#000"
textbutton "Map" action Hide('b', transition=wipeleft)
Is the
wipeleft delaying for anyone else? Because the other ones aren't, but wipeleft waits for a moment before running. Experienced on the current version of Renpy (6.99.12).
Imperf3kt
Lemma-Class Veteran
Posts: 3791 Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:
#2
Post
by Imperf3kt » Fri Dec 30, 2016 7:32 pm
Happening here too, on the previous release. It appears to be taking about a second before the button responds.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Twitter
papiersam
Veteran
Posts: 231 Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:
#3
Post
by papiersam » Fri Dec 30, 2016 11:40 pm
Okay, testing the code above and looking closely, you can see a 1 pixel black line sweep the screen until it reaches the frame. So the delay in this case is the time it takes for the transition to reach any non-transparent objects.
Addendum: how do we side-step this?
PyTom
Ren'Py Creator
Posts: 16093 Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:
#4
Post
by PyTom » Sat Dec 31, 2016 12:05 am
Honestly, your best bet is to just use a transform:
Code: Select all
label start:
call screen a
return
screen a:
add "#fff"
textbutton "Menu" action Show('b')
screen b:
frame:
at btransform
xsize 300
yalign 1.0
background "#000"
textbutton "Map" action Hide('b')
transform btransform:
on show:
offscreenleft
linear .5 left
on hide:
linear .5 offscreenleft
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama •
https://www.patreon.com/renpytom
Users browsing this forum: No registered users