here is video clip that I record while testing on Samsung Tab3 10.1", Please see what happen while I'm dragging screen.viewport spring back every time and didn't stay at position I want.
label start :
python :
ui.viewport(area=(0,0,1280,720),draggable=True))
ui.fixed(area=(0,0,2000,1000))
ui.add('character',pos=(700,300))
ui.close()
# This button for end this viewport.
ui.textbutton('test',clicked=ui.returns(True),align=(0.0,1.0))
result = ui.interact()
if result :
pass
I'm curious this is a bug or not? or maybe because of my script.(but on Android emulator in Launcher work perfectly.)
Please help me how to solve this problem,my code almost finish and left only drawing and graphic.
Last edited by Sirin on Mon Jun 16, 2014 2:00 am, edited 1 time in total.
label start :
python :
ui.viewport(area=(1,1,1000,600),draggable=True))
ui.fixed(area=(0,0,2000,1000))
ui.add('character',pos=(700,300))
ui.close()
# This button for end this viewport.
ui.textbutton('test',clicked=ui.returns(True),align=(0.0,1.0))
result = ui.interact()
if result :
pass
This is video clip record about Transition's problem that I was found with Viewport on Android's device.
As you can see,when I first start the game I set Transition in and out after dialoge "test show statement" and the other. I suppore to use it for change to the next scene.
And when Transition operate,The problem occur...they instantly showup instead of fading from left to right.but when hide with Transition they fading properly.(smooth and perfectly as it is.)
In next Transition when showup,Transition start fading at the center of the screen not at the left side.(you can see this in dialoge "test2 scene statement" and "test3") but while fade-out Transition done perfectly.
After that I use counter to count the time in various sec berfore Transition appear.(3,5,7,10 sec) result as you can see,but the important thing is Transition didn't fade-in at the position they should do while fade-out is nothing any problem.
below is my code in this testing.(and same as my project script.)
init :
image black = Solid((0, 0, 0, 255))
python :
irsr = ImageDissolve('irs.png',2.0,20,reverse=False,alpha=True)
label start:
'test show statement'
show black with irsr
$renpy.pause(1)
hide black with irsr
'test2 scene statement'
scene black with irsr
$renpy.pause(1)
hide black with irsr
'test3'
scene black with irsr
$ renpy.pause(1)
hide black with irsr
'From this point I will try to wait in various sec.'
'wait 3 sec'
python :
tm = 0
for i in range(3) :
tm += 1
ui.text('%s' % tm,size=140,align=(0.5,0.5))
renpy.pause(1)
show black with irsr
$renpy.pause(1)
hide black with irsr
'wait 5 sec'
python :
tm = 0
for i in range(5) :
tm += 1
ui.text('%s' % tm,size=140,align=(0.5,0.5))
renpy.pause(1)
show black with irsr
$renpy.pause(1)
hide black with irsr
'wait 7 sec'
python :
tm = 0
for i in range(7) :
tm += 1
ui.text('%s' % tm,size=140,align=(0.5,0.5))
renpy.pause(1)
show black with irsr
$renpy.pause(1)
hide black with irsr
'wait 10 sec'
python :
tm = 0
for i in range(10) :
tm += 1
ui.text('%s' % tm,size=140,align=(0.5,0.5))
renpy.pause(1)
show black with irsr
$renpy.pause(1)
hide black with irsr
'END TEST'
I attach file 'irs.png' that I use for this Transition if anyone want to test it.(launch with Android emulator in launcher no problem but not in Android's device.)
P.S. I find in previous doc and topic about RAPT and found that Pytom used to said about RAPT version 6.15 can use "OPEN GL" or something like that and that cause RAPT can use ImageDissolve in Transition.(I don't know this relevant with the problem or not.)
After this I'll test my project with Android's device and if I found something strange I'll report it as soon as possible.