[SOLVED] Why Textbox don't work in mobile?

Get help using Construct 2

Post » Wed Aug 05, 2015 3:00 am

Hello everyone! ^^

I put the Textbox in a casual mobile game and when I compiled in Ludei/CocoonJS, he didn't appear. :(

Can anyone tell me what might be happening?

I thank the attention and cooperation of all.

[EDIT]

The solution was to change the Textbox by SpriteFont. Ok, it may seem obvius at first, but I used the Textbox to recognize the touch angle of the player on the screen. I'm also doing everything alone game, so be patient with me. ^^

Thanks for the support and patience, guys!
Last edited by lukezero on Wed Aug 05, 2015 2:33 pm, edited 2 times in total.
B
38
S
9
G
3
Posts: 257
Reputation: 4,318

Post » Wed Aug 05, 2015 7:14 am

Textbox plugin not supported via cocoonjs, and neither is the button, etc. Pretty much all form controls. It's documented that CocoonJS does not support form controls. cocoonjs is also depreciated. But you know that ;)

Note: CocoonJS has text input workarounds so ask them.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Wed Aug 05, 2015 10:32 am

Thanks for the info, @DUTOIT. I swear I didn't know that. I use the C2 recently.

What is the best alternative to Cocoon, especially in terms of performance and stability for mobile devices?
B
38
S
9
G
3
Posts: 257
Reputation: 4,318

Post » Wed Aug 05, 2015 10:40 am

terms of performance and stability for mobile devices [now that is where it gets tricky - lol]
But this should get you going...phonegap

But why you using TextBox? and do you really need it?

I create my own keyboard which appends to a text box or spritefont and save data that way. I can then control the styling etc etc. Sure TextBox has css, but styling really isn't the best.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Wed Aug 05, 2015 11:09 am

I used the Textbox in an angle recognition system for a mobile game that I did.

Now that the game is completely finished, the Cocoon precisely failed at it its mechanical function. :(

In this case the Textbox stores the numbers related to the angle (360/45), as the player touches the screen in any direction.

Any suggestions?
B
38
S
9
G
3
Posts: 257
Reputation: 4,318

Post » Wed Aug 05, 2015 11:13 am

Another thing, Letterbox Scale doesn't work on Cocoon. :(

Following recommendations, I developed it into a HD resolution (864x486), so that it perfectly fits to any mobile device, but in compiling the game is with a stripe below it.

You know how to solve this?
B
38
S
9
G
3
Posts: 257
Reputation: 4,318

Post » Wed Aug 05, 2015 11:56 am

And ludei webview? - sorry I haven't used webview or ludie for some time, but they have gone to great lengths to change the public image and have been pretty active in making things better.

I don't know what can/can't be done. Perhaps follow up with them, they might offer work-a-rounds.

Look, I dislike ludei, for the issues I had, but they have been pretty active, and might have some solutions for you.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Wed Aug 05, 2015 1:14 pm

Thanks for your attention and collaboration, @DUTOIT! :D

I solved the recognition problem changing the Textbox by SpriteFont.

This was simple to fix, but I'm so stressed out doing everything alone (game design, graphics, animation, programming etc.) that doesn't think of it first.

Since I'm new in the C2 community, I'm out of everything that has happened. Only knew the Ludei was a good solution and, taking these limitations, I am quite satisfied with the service they offer.
B
38
S
9
G
3
Posts: 257
Reputation: 4,318

Post » Wed Aug 05, 2015 1:19 pm

@DUTOIT My greatest headache with Ludei/Cocoon (though not sure if they are to blame) is with the Canvas, as I did a casual game using this plugin, but unfortunately ran to one frame per second. That is, infeasible. :(
B
38
S
9
G
3
Posts: 257
Reputation: 4,318


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 3 guests