Richard Stennett's Forum Posts

  • breackzin

    Unfortunately I can't offer an example of the capx I am currently working on.

    I'll create a makeshift one for the moment as a demo and upload it shortly.

    In the meantime, create a textbox (so the user can input information), export the capx as a cocoonJS file, run it through the cocoonJS mobile app (ether Play Store or App Store) and tap inside the Textbox. Nothing happens.

    Edit

    Here are the files I'm testing on with all the data you might need. Thanks for the help

    HTML5

    https://dl.dropboxusercontent.com/u/74175978/Keyb/HTML5/index.html

    If you run this version through Windows XP, Vista, 7, Android or iOS the textbox works fine.

    The software keyboard on mobile and tablets all work as expected

    CocoonJS

    CocoonJS Export

    This version can only be tested on mobile, in this case mobile doesn't allow the software keyboard to be used. Or at least I can't get it to work

  • Update

    Seems its not possible at this time https://www.scirra.com/tutorials/303/how-to-export-to-cocoonjs. Textbox is currently unsupported.

  • Bumping the thread, I have no new information, any other ideas I could try would be useful.

    Thanks in advance as always

  • This is still an issue. Trying to create some sort of work around now by designing my own keyboard and variables to indicate key strokes.

    Not efficient but it works.

    If anyone knows an easier way to access the mobiles on screen keyboard when exporting to CocoonJS please let me know.

  • Hi all, I'm coming to the end of developing a mobile game but I've encountered an unusual error and I'm hoping someone may be able to assist me in how to solve the issue.

    Problem

    When exporting to HTML my game offers a leaderboard where the user can enter their name using a textbox. Simply click inside, write your name and click send. Simple.

    This same mechanism on mobile (Exporting to CocoonJS) has a much more difficult approach.

    Tapping inside the Textbox results in nothing. I expected the mobile keyboard to pop up and allow the user to enter their name.

    Solutions I've tried

    I've tested on multiple mobile devices and nothing on any of them. I've tried "on touch, set focus" but still nothing.

    Am I missing something I'm supposed to do, or is this simply not possible yet?

    Thanks in advance for any help anyone offers

    Edit

    Seems if I export the game to a HTML format and run it through the mobile browser the mobile keyboard works. Problem now though is the game is running at around 12 - 16 fps.

    Could really do with a solution using CocoonJS export to get the keyboard as the game runs 32 - 37 fps in CocoonJS.

  • This is the last bump, after this I will just accept that the problem can't be solved.

    As always any advice to why this is happening will be appreciated

  • Bump as I still can't work out a solution to this problem

  • cesarzevil

    You need a variable for every level. Once you have all the variables set up you can add them together into one overall variable.

  • cesarzevil

    You would need to create more variables to use my idea.

    Yes the term + can be used as long as your working with numbers.

  • Bumping as its been a few hours since this was posted. I still can't understand how to stop this problem from occuring

  • jbrown2177

    If you look at the capx I sent you there is a variable that is detecting which controller method is being used (Pad, Keys or Touch).

    If that variable = Touch then set a layer to visible (This layer should contain all your touch buttons)

    If that variable "Does not" = Touch then set a layer to invisable

  • philx

    Mobile testing was fine with the larger layout, images that tried to fill the background though caused some issues with black lines appearing or images not appearing at all.

    The fix to this was to use a tiled background, I know this sounds simple but we overlooked this very simple step. (Tested on iOS and Android using CoccoonJS)

    As for character animations and sprite creations, I had a friend draw them up on Photoshop. We only used 6 sprites for the running animation (3 rear leg forward) (3 forward leg forward)then played with speed settings to get a desired result.

    If I was to draw my own sprites (Depending on the style of game you want) I could suggest Photoshop or Gimp for detailed sprites, pixlr.com for pixel art or some sort of drawing tab or app for a middle ground.

  • I would suggest using a global variable to record the level scores. This way you can set up some kind of high score for each level.

    For the sum you would set up one final variable that adds them all up.

    Example. Variable = (Level1HS + Level2HS + Level3HS etc etc) In this case Level1HS refers to Level 1's High Score variable that you would have stored.

  • I'm having some issues with touch and how to confine an object in touch to a certain area. This requires the use of touch commands as 2 touches at the same time need to be present when the problem occurs.

    Dropbox Capx - dl.dropbox.com/u/74175978/Construct/Analog_Issues.capx

    Dropbox CoccoonJS - dl.dropbox.com/u/74175978/Construct/newproject.zip

    Above you'll find the capx and an extracted cocoonJS.

    (Instructions on how the game currently works)

    In my game I move an object labelled "Analog_Area" to where the users touches the screen and another object labelled "Analog_Stick" to the same place.

    After the initial touch the user is unable to move the Analog_Area but is free to move the Analog_Stick, this allows the player to move the on screen sprite.

    The button on the right side of the screen labelled "Analog_Jump" allows the player to jump.

    The large green box is the only area the controller is allowed to appear.

    (Problem and how I expect it to work)

    My problem is when the user touches and holds the jump button and then tries moving, the movement analog positions itself on the right hand side of the screen, no longer on the green touch area.

    I have tried to lock it to the touch area but I can't seem to figure out how.

    Any help on this issue would be appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley thanks for clearing that up. Sorry for the bad wording, I meant Auto-Backup not Autosave.