cristiart's Forum Posts

  • Is there a way to have the user play his own music?

    I've seen this tutorial, but the problem is that once you navigate to another layout and come back, you can't stop the music/video.

    scirra.com/tutorials/1232/m ... sic-player

    So I was wandering if any plug is available that will extend the audio capability as to the file location of the sound; perhaps "Play from URL" action.

  • matrixreal

    to save into LocalStorage use action >>> LocalStorage Set item "yourname" to Array.AsJSON

    to load from it:

    • on start of layout >>> LocalStorage check item "yourname" exist (***important to check storage first)
    • LocalStorage On item "yourname" exist >>> Array load from Json string LocalStorage.ItemValue
  • Problem Description

    Javascript error!

    SyntaxError: let is a reserved identifier

    localhost/LocalStorage_plugin.js, line 123 (col 2)

    This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.

    Steps to Reproduce Bug

      Insert Local Storage in your project and run it in your firefox, you'll get this error message

    Observed Result

    ____ What happens? ____

    Expected Result

    ____ What do you expect to happen? ____

    Affected Browsers

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

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

  • Ashley the data I store in WebStorage is only from arrays, so I'm thinking of a way to migrate.

    When the game start load array data from webstorage and then destroy localkey and save data to Local Storage.

    Next time when game start again - if localkey does not exist look and load data from Local Storage.

    That this sounds about right?

    functions are best used especially when you have parameters, so you can replace the value of an parameter with a variable. (any variable; sprite, text, global variable, local variable ...) Also, if you have a group of actions that get repeated through out your project, functions are the best way to go about.

    What I like to do is have an Event Sheet called "functions" that I import into all the other Event Sheets of my project.

  • Problem Description

    Not sure if it's construct bug or not but XML files are not loading in Windows+

    Steps to Reproduce Bug

      I'm publishing with IntelXDK and it's loading fine for Android and IOS but not Windows

    Observed Result

    ____ What happens? ____

    Expected Result

    ____ What do you expect to happen? ____

    Affected Browsers

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

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

  • One of the arrays I have is with all the game settings like Level, XP points, Items you bought, timestamps erc... I also have X, Y, arrays with more user data.

    Using arrays is much easier that using dictionary as long as you keep a chart with what each value is for

  • I'm using x, y, arrays for game "mechanics" so going about using dictionary might be a challenge. Also I'm concern about user existing data that needs to load from Webstorage when the game start.

  • Since the latest release introduces Local Storage, I was wandering what is the best way to migrate from WebStorage to the new Local Storage, especially for existing games.

    Thanks

  • volkiller730 thank you, I got it all figured out.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I exported the game for android and I'm looking to do the same for windows too

  • volkiller730 when you export from Construct, did you export as cordova or as windows app?

  • following the part that talks about the publisher id that is...

  • I'm trying to upload my game to windows and I get this error

    Validation error: The Publisher attribute of the Identity element in the app manifest doesn't match your publisher ID, which is: CN=F8987766......

    I did follow Ashley's tutorial (link bellow) and I manually entered the publisher info into the app files and yet I still get this error.

    scirra.com/tutorials/993/ho ... store-apps

    I export using IntelXDK.

    What am I missing?

  • Very nice, do you mind sharing .capx for the how the map moves/loops?

    thank you

  • First off THANK YOU, THANK YOU for your grate work.

    I got you Phonegap IAP plugin and it's working grate for android, but not apple. Am I missing something?