Transition and Viewport didn't operate properly on Android.

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.
Post Reply
Message
Author
Sirin
Regular
Posts: 39
Joined: Mon Jul 13, 2009 10:16 am
Contact:

Transition and Viewport didn't operate properly on Android.

#1 Post by Sirin » Sat Jun 14, 2014 2:31 am

Hi Everyone,I've a problem about Transition when I port my project to Android's device.

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'
....result is the same.when first scene with transition appear,it instantly showup(although it has "with" statement) and then hide with smooth transition after pause 1 sec (I was tried remove "renpy.pause(1)" out and see result,but it same.)

-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.
Attachments
irs.png
I use ImageDissolve with this file.

User avatar
KeyboardSan
Regular
Posts: 26
Joined: Sun Oct 05, 2014 5:38 am
Completed: A Sweet Meeting, SRZ, Flower Field
Contact:

Re: Transition and Viewport didn't operate properly on Andro

#2 Post by KeyboardSan » Thu Jun 11, 2015 12:38 am

I have the same problem.
When I port my game to an Android Tablet the transitions in the game won't work.
However, when I port it to an Android Phone the transitions worked perfectly.
I can't figure out what causes this. :/
I hope someone finds a solution to this.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Hojoo