While I run my project on PC(and Android emulator) that nothing strange happened and especially with "Transition" was operate perfectly.(I'm very happy because of my previous past alway confront with some strange problem from my noob programing or else but not this time.)
but when I port it to my Android's phone I found some strange problem with Transition!! below is list of Transition's problem from my observe while test and check my project on Android.
- First, When start the game,my first scene use "with" statement to make scene appear didn't work properly, scene appear instantly instead of fading , dissolve or ImageDissolve I was use anymore.(but when hide with Transition it work properly like it is.)
- Second, from First... I tried code script to test this and find what's cause problem.
Code: Select all
init :
image black = Solid((0, 0, 0, 255))
python :
irsr =ImageDissolve('irs.png',2.0,20,reverse=False,alpha=True)
label start :
'test'
scene black with irsr
$ renpy.pause(1)
hide black with irsr
'test2'
show black with irsr
$ renpy.pause(1)
hide black with irsr
'test3'
python :
renpy.show('black')
renpy.with_statement(irsr)
renpy.hide('black')
renpy.with_statement(irsr)
'test4'
-Third, scene after 'test2' dialoge is run smoothly to end line. But...I try to wait before pass through 'test2' dialoge about 5-10(or more) sec,the same problem occur with second scene and other either.(and it occur on every Transition when I try this way.)
That make me conclude this problem will occur on every "First" Transition and then next Transition if take time enough before appear(in my case 5-10 sec) or your next transition will appear after playing more than that.
I don't sure it will happen in everyone's project or not,but it was happened to me already. TTwTT
This's my project option setting and etc.
- screen 1280x720
- renpy 6.17.6 (latest version)
- rapt (latest version *update&install from launcher)
Android's version and device.
- Smartphone (local brand), Android 4.2
- Tablet Samsung Galaxy Tab 3, Android 4.2 or higher
* Once I thought this problem occur because of my Smartphone(I test it in Smartphone first.),but after test in Tablet result still the same either.
My project almost done,Please help me.
// ADD New problem found!!
Now I found new problem about ui.viewport when running on Android either.
The problem is occur when I draging displayable that contain in viewport they spring back everytime and didn't stay properly. when I drag them to left side and then rise my finger up they spring back to the right at unpredict position.
below is my test script that replicate from my viewport screen,They're same result.(spring back,spring back everytime on Android but work perfectly on PC and Android emulator.)
Code: Select all
label start :
'test'
python :
ui.viewport(child_size=(1280,720),draggable=True)
ui.fixed(area=(0,0,2000,1000))
ui.add(*displayable1,pos=(x,y))
ui.add(*displayable2,pos=(x,y))
ui.add(*displayable3,pos=(x,y))
ui.close()
ui.interact()
Oh my god.....I hope I'll not found any problem anymore while I test my project furture(and hope that atleast not found problem in my battle system.)
If anyone try to test it please tell me your result.