azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
201 stars 64 forks source link

Performance on iPad2. #48

Open vikramarka opened 7 years ago

vikramarka commented 7 years ago

Hi,

Thanks for the nice plugin. I am building a word scramble game with phaser and using input plugin. The plugin works nice on desktop and on android devices. But there are some serious performance issues on iPad2. Initially I tried creating several text input fields, but there are some performance issues on iPad2. So I tried creating a single text input field and tried moving it around. But the issue remains same.

Any tips on improving performance on iPad?

madanteena commented 6 years ago

Hi vikramarka,

The phaser input plugin not working on mobile devices in my case. Can you please tell me how it is working for you?

This is my code in create function-which works good on desktop, but not working on mobile devices. I have tested it on ipad, and android mobile.

//enable plugin for text input game.add.plugin(PhaserInput.Plugin);

    //textfield
    name=game.add.inputField(200, 230, {
        font: '29px casual',
        fill: '#000',
        width: 380,
        padding: 10,
        borderWidth: 4,
        borderColor: '#169AC5',
        borderRadius: 20,
        placeHolder:'Name',
        placeHolderColor:'#00549C',
        textAlign:'center',
        type: PhaserInput.InputType.text
    });

Thanks in advance.