GameThirsty's Recent Forum Activity

  • Hello fellow CS2 developers!

    Is the Facebook API that CocoonJS has an example of working with Construct 2 as of yet?

    Or is there a way to use Facebook Login implementation with CocoonJS? Besides Clay.IO plugin

    I haven't had any luck trying to find the answer to this

  • Im back, and I have made some progress!

    I used the following routine to on clicked textbox, it checks to see what the window size changed to, and divides that by 2 to get the halfway mark. The width stays the same half way mark, because the width did not change from the keyboard. I then set a variable to set the current value of the window size (which is the window size with the keyboard up) then once the user backs out of the keyboard, the window size changes, and I compare the value when the keyboard is up to the value when the keyboard is down as you see in the second event, and scrolls accordingly.

    Here is what my phone looks like with this method put into play:

    As you can see, its close! but not quite perfect, there is more white space when you backed out of the keyboard on top of the textbox, then when the keyboard is up. The event also has a wait of 0.75 seconds, it seems like the events inside the clicked on textbox gets ignored, because their is a slight delay from when the keyboard pops up, so I have to compensate for that delay by delaying the rest of the events by 0.75 seconds. That seems inefficient. Is there a way I could make it happen instantaneous? Because the user can see that delay it takes to scroll.

    Edit: However, I tried it on a bigger phone with a bigger screen width & height, and my current system breaks and does not work.

  • Hey there, I took your advice and this is what I got with Scale inner as full-screen in browser, and system scrollto textbox and also unbound scroll set to YES.

    The result is this: It seems to leave a huge gap inside my app

  • This is what scale inner looks like 268 by 480

  • They are both 268 by 480 in those screenshots I had fixed that.

    I haven't tried scale inner, Ill try that

  • This is what happens when crop is turned on, without screen adjustments, because it was turned to Scale Outer mode.

    It seems to crop the top as well

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I included screenshots to help me explain my problem a little better, this always helps me.

    See how my app scales? When the keyboard pops up

    I would like my app to utilize how Facebooks login system works like below, it just covers up the bottom of the forum. It seems to ignore the scale.

    Could this be possible?

  • And another option, if I have to, ill scrap the Facebook integration idea, and just go with CocoonJS export, using my own keyboard for my app. The only downfall to that, is I cant figure out how to bring in a picture from your mobile device (off your phones memory) into a sprite. I know this can be done with the plugin "File Reader" on mobile browsers, or PC browser. However, CocoonJS does not seem to support File Reader. Is there any other way to achieve this?

    That is the only reason I was using Facebook integration. To gather a profile picture.

    However, I do not know how to detect the input method and scale accordingly.

    Im guessing something like this?

    On textbox clicked-> Set Canvas Scale??

  • Thanks for the responses. <img src="smileys/smiley1.gif" border="0" align="middle" />

    I would like my app screen scale back to the original scale once I click a textbox, would I approach this with the canvas scale in system?

    It doesn't bother me that the textbox being obscured by the keyboard, because I can get around that by placing the textboxes on the top of the app. Leaving all the bottom room for the software keyboard for the phone devices.

    There has to be a way to let the game ignore the scale whenever the keyboard pops up.

    Making the virtual keyboard, I know how to do that. However, my app will have Facebook integration. It would just be odd to have the software keyboard pop up when you log in through Facebook, then once your in my app to use its own keyboard. It is not consistent.

  • Ill re submit without css plugin

    edit:

    https://www.dropbox.com/s/zimv4071r9hcb07/ST1.6.capx

    I've tried any possible way to get rid of scroll from textbox, I did in fact have the solution, but I forgot to save the .capx I couldn't believe my eyes when I opened it up again.

    I have been working on this for 9 hours, im about to give up. You would think it would be simple to stop the zooming on a textbox on a mobile web browser.

  • Sure,

    here you go

    The problem is using HTML 5 on my mobile browser it zooms, making everything really small.

    https://www.dropbox.com/s/zimv4071r9hcb07/ST1.6.capx

  • Yeah, sadly the textbox object still scales the whole app even with 0 parallax and scale. :\</p>

GameThirsty's avatar

GameThirsty

Member since 29 Nov, 2012

None one is following GameThirsty yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies