frozenpeas's Forum Posts

  • Built a simple file chooser and sprite using XDK with just the android version and cordova camera plugin - Load image from FileChooser.FileURLAt(0)

    Permissions show as "modify or delete the contents of your SD card read the contents of your SD card"

    When you click the file chooser, the recent files list appears (the one that has links to galley, videos, etc) which seems correct

    However, when you click an image, nothing happens. Added a text box to show location of the file which reads something like blob:file%3A///0af12f87.... etc

    Android 5.0.2

  • Crikey the months fly by

  • When using features like FileChooser and Canvas Snapshot are there any additional plugins required to make these features work correctly when exported to apk?

    If so what are the plugins required and is there any Construct 2 documentation containing a full list?

    Thanks

  • Wow never knew you could disable groups

    That will make things a lot easier

    Thanks

  • One of the things I learned early on was to create a global variable called something like "menuToggle" and when an option or menu item is selected I set menuToggle = 1

    This can then be used to disable all other screen clickable objects when one is active.

    Test for it by using:

    On touch object and menuToggle = 0

    》do something and set menuToggle = 1

    When the user closes the menu or clicks next you set menuToggle back to zero.

  • Thanks for posting.

    I've been banging my head against a brick wall for days trying to find a solution to a problem similar to yours regarding the file chooser and loading a file from the phone gallery and you may be on to something.

    Can I ask, from that Intel page what exactly you did to remedy the problem.

    Thanks

    Rob

  • Yeah tried Cocoon.io and file chooser no dialogue, nothing.

    Newbie at Cocoon.io so must have been me. Plugins didn't want to install for some reason.

    Can I ask what plugins you used to get File Chooser working over at PhoneGap

    Thanks

  • Thanks for the heads up on PhoneGap. Will give it a try.

    For screen capture I use Cranberrygame's (paid) plugin called, funnily enough "PhoneGapScreenCapture"

    https://plus.google.com/communities/117978754675005605917

    Rob

  • Can't you break apart the maze into sections and then join the sprites together in the layout window?

    Much of this maze can be made from re-useable sections.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Png or jpg

    Looking at these they would be better as png

  • Top left click projects

    Bottom left click start a new project

    On the left Import your HTML Code Base

    Import from select export folder

    Source directory empty (more on this later)

    Use Cordova (if you want the plugins)

    Game project no

    Continue

    Intel XDK Forum has given instructions for Construct that are a bit confusing (to say the least)

    https://software.intel.com/en-us/forums/intel-xdk/topic/607195

    I have built without the www directory and got no errors so ignore Intel's instruction unless you have a problem I suppose.

  • Problem Description

    The file chooser will not load an image into a sprite when exported to apk

    On Android the "Choose an Action" dialogue appears, but no link to the gallery.

    Clicking the camera link and taking a picture and saving and still the sprite does not change.

    Within file chooser I have specified .png,.jpg,.jpeg in the properties.

    On Android I wish to select the file chooser and for it to open a gallery or camera link and for the sprite to change accordingly

    The file chooser works as expected on Chrome, XDK Emulator and NWjs

    I'm building in XDK version 2893 (latest)

    Crosswalk embedded version 15

    CLI 5.1.1

    Have tried Cordova Camera, File and Media and the Custom Intel plugins to no avail.

    Attach a Capx

    https://drive.google.com/folderview?id=0B3eaqRhfaUabaHRWOFg1ZXAyTkU&usp=sharing

    Description of Capx

    Just file chooser and a sprite

    Steps to Reproduce Bug

    • Export Cordova app select uses Camera and Media
    • Build in XDK
    • Install on device

    Observed Result

    File chooser on Android opens "Choose an Action" dialogue and select camera, take picture, save picture and sprite does not change

    Further Information on a thread I have created: https://www.scirra.com/forum/viewtopic.php?f=147&t=167809

    Expected Result

    When selecting file chooser I expect to get the option to select gallery or camera and once an image has been selected for this to appear within the sprite

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (NO)

    Operating System and Service Pack

    This is an Android issue

    Construct 2 Version ID

    221 (64 bit)

    It's very difficult to pinpoint where the problem lies as I have no build errors in XDK so posting here out of desperation and to eliminate at least one from the equation. I very much doubt this is a Construct issue and hope that you confirm this so that I may look at XDK alternatives as a means of building the apk

    Thanks

    Rob

  • You can load the array from local storage:

    https://www.scirra.com/manual/188/local-storage

  • If we are talking about a mobile device game.

    Surely, if a player creates a level and saves it, then the level will only be playable on the device the level was saved on.

    Basically, the array is saved on the users device.

    Unless of course, you wish for users to share levels. In which case you are going to need a place to upload the levels on to the internet.