COGames's Recent Forum Activity

  • It will work if I load directly into the text object, however, it comes with a lot of escape characters and spaces added. If I use the json parse then it gets rid of the escape chars (but I'm finding the extra spaces are still there). Note that I'm getting the data from mySQL database. The data started out in C3 as arrays that I put into a dictionary and then stored in the database. When I retrieve it, it's filled with many escape chars.

    Originally, I did this, and removed all added \ and spaces, and it worked, but it seemed messy. I guess I'll have to do it this way, it just seems so wrong.

  • Tried turning off "Enable BB code", it still did not work. Also tried a text input and it did not work.

    The thing is, in the debugger, I can copy the text from the JSON instance data and paste it into the text object. Then my code continues on and works fine (loads up a dictionary). This has to be easy to do in C3, I just have no clue how to do it. I tried to do this with a script, but I'm no javascript programmer and of course that didn't work for me.

    I really didn't want to loop through with keys and such to load my dictionary (seems to be confusing to me).

  • Did you wait for the AJAX request to finish before trying to parse ajax.lastdata?

    Yes, I get the data (see the image). Now I just want to throw it into a text object. I think there's something simple that I'm missing, but I tried all different ways.

  • Is there a way to put the parsed json string into a text object? I just want to dump it in there. The image below did not work.

    Tagged:

  • Is there a way to load up a text object with the parsed JSON? What I have in the image below doesn't work.

    I do know that I can loop through the parsed json, but I don't need to do that.

    Tagged:

  • I'm sending a C3 array to a (mySQL) database. Then I want to retrieve it with C3 and restore the array.

    The array is width=4, height=1, depth=1.

    Array: x(0)="rat", x(1)= "elephant", x(2)= "lion", x(3)= "sloth"

    When I send it to the database, I see it gets stored as below. Note the extra brackets (does this mean the animal names are in their own array?).

    {"c2array":true,"size":[4,1,1],"data":[[["rat"]],[["elephant"]],[["lion"]],[["sloth"]]]}

    Then I use AJAX to retrieve the data. From C3 (and when I use postman), I see the data is retrieved with escape characters.

    "{\"c2array\":true,\"size\":[4,1,1],\"data\":[[[\"rat\"]],[[\"elephant\"]],[[\"lion\"]],[[\"sloth\"]]]}"

    I'm at a complete loss on how to put the data back in the original array, so it's just like when it was stored. Any help would be very appreciated.

    Tagged:

  • I have apps that allow users to email me, but now I'm concerned about bots. I added the google recaptcha to my website forms, but now I think I should also do this for the apps. I see there's a way on C3 to add code, but what about adding an HTML div (I would need to add both a snip of code and some html)?

    Tagged:

  • I have an APK that runs fine on Android devices and the Chromebook. When I submit to Amazon I get the vague message:

    "We are unable to test your app as it does not function as intended. The app exits/ force closes/ freezes/ displays an error message after being launched. Please fix the issue and re-submit the app."

    So, I have no real way to track this down, so I figure I'll go the other route and publish the app as a web app. Amazon allows this. You can upload the zip file or give them the URL. I chose to give them the URL.

    AGAIN, I get the same message that I did for the APK! It's easy to see this app runs by clicking on the URL.

    I searched this rejection, and found that it's very common. Some even think that this is Amazon's screwy way of saying they're not interested in your app.

    So, has anyone figured this thing out?

    Edited: I opened a ticket with Amazon regarding the web app. I questioned how it didn't run when you can click on the URL and see it working. Six hours later they passed the app and it's now listed. Interestingly, someone mentioned to me that there are most likely testers that have quotas and they just fail apps without truly testing them, just to get through their workload. I wish I opened a ticket for the APK.

    Tagged:

  • I want to make sure I'm not missing a setting or something before I do a bug report.

    On Android, if a layer has a certain amount of sprites, the z-index of the objects changes.

    When I removed sprites, the z-index seems to work. So it seems that this problem triggers when there's a certain number of sprites on a layer.

    Cp3 Link: 1drv.ms/u/s!AobC4q3rBlr62Ik0GA-KK0MqAJkCWw

    This is a pic on how the layout should look (it's on PC chrome)

    Not sure if these pics will show up, but the first one shows all is well, and the second shows sprites behind other sprites.

    This is how it looks on Android

    Edited: Made a bug report, github.com/Scirra/Construct-3-bugs/issues/4560

  • You do not have permission to view this post

  • I'm running an app on the Android emulators on Android Studio and objects are going on top of each other when they shouldn't, seemingly ignoring the z-index.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did this a while back and when I tried to play the app on the chromebook, it crashed (a complete crash). I did this in C2 a few years ago, and since C3 is way better for mobile deployment, I'm wondering if this is still an issue (playing on chromebooks).

COGames's avatar

COGames

Member since 20 Dec, 2015

Twitter
COGames has 2 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies