DonRIF's Forum Posts

  • Concerning the WkWebview, I can't load images from XML using "Load image from URL" on iOS, i read this post by Ashley (https://www.scirra.com/blog/ashley/25/h ... -wkwebview) but I can't quite understand if there's a solution to it or not. Anyone can help me ?

    Edit: nevermind amigos, i found the solution: loading-files-not-working-with-wkwebview_p1072160?

    I had the 233 C2 version too, it was corrected since then! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • simple example:

    sample_questions.xml

    QuizXML.capx

    Thanks very much korbaach, I managed to do it simply by changing a variable according to the XML.

    The red underlined variable is the key: I created a layout named "1" and I add 1 to the variable level_number to pass to the next question.

    The "q" node in the XML is what controls which question you are in.

  • Well not much anyone can do without a glimpse of your code. You should provide a .capx file. I'm not saying that I'll definitely have time to look into it, but you increase the chance of getting help by providing a code example with the problem.

    Alright, thanks, my code is a bit too long and complicated, i'll try to do a simplified capx for the example.

  • If you are creating 900 layouts for 900 questions you are definitely doing something wrong. You should work on the 1 layout solution.

    Storing 900 values in localstorage shouldn't run out of the space limit.

    That's exactly why I thought, but I want to move between questions and it doesn't seem to work when I make "Restart layout" and I change values according to the XML. Any tips?

  • Hello everyone, I'm working on a quiz game, you can check out some of my tweets regarding it (twitter.com/donrifgames). It will have at least 900 questions (I handle questions by XML, but I have to duplicate the same layout 900 times!....maybe i'm doing it wrong, can I keep one layout and change informations on it everytime?)

    So that causes some slowness, I have found some framerate issues on iOS: the localstorage is too slow, the app works fine but it takes time to retrieve saved data. On Android, the asynchronous problem seems to work better than on iOS, though i have not fully tested it on Android.

    I have seen a post by sqiddster where he suggests to save variables/arrays in a dictionary and load the dictionary on startup with the localstorage plugin. I didn't seem to understand how exactly.

    Your help will be much appreciated!

  • Thanx a lot for the plugin, but the v2.2 is very buggy, the delay is too long even if u put 0 sec.

    Edit: sorry, nv mind, i was using an older version.

  • No worries, db.tt/3b7YVAzB

    You will have to change it to suit your needs but this should show you how.

    Press space to get a random letter from the array. Using debug you can see the cells being removed

    .

    God bless my brother!

  • just delete(disable) condition(just condition,not actions)

    Array_letters X Contains Value random_letter

    Yeah thanks, I already tried that, but now it gives me 3/4 times the same letter randomly. You see what I mean?

    Maybe i should try and randomize another array containing the placement of the letters?

  • Instead of setting the letter randomly through the system action why don't you draw it straight from the array itself (choosing a random cell of course). That way you could easily control what is in it and just delete the cell when the letter is chosen.

    Can you please give me an example on how to do it?

  • Let me explain myself better: I'm building a quiz/trivia app, the idea is, on start of each layout, it randomize the letters displayed. I already managed to do this, like shown here:

    So basically, it randomizes the letters on start of layout. And it doesn't repeat the same letters. But now, I want to add multiple same letters in the variable, like this example: A, B, C, D, E, E, A, G, H

    If i change the strings, it won't work because the While loop is made to not repeat the same strings. So how I do this easily?

    Thanks and I hope I explained myself clearly!

  • is there a web version ?

    Yes: kongregate.com/games/donrifgames/da-box-hardest-easy-game-ever

  • Hey there, check out my free game Da Box on iOS, it's a puzzle / platformer casual game, easy to learn but hard to master!

    itunes.apple.com/us/app/da-box/id1087306399

    Your feedback is very welcome! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Hey there, my game was accepted on the App Store yesterday! Check it out, I hope you'll like it ! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    itunes.apple.com/us/app/da-box/id1087306399

    It's also available on Google Play since October: goo.gl/PFvjuO

    Tell me what you think about it! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everybody, I just want to share my experiences with exporting to iOS with Phonegap. 99% the time that it failed, it was because of audio problems.

    The problem is in C2 converted .m4a files, they aren't compatible with iOS according to my tests. I hope Ashley could check this problem.

    The solution that fixed all the builds I made is that I exported the .ogg files and then converted them on an online converter to .m4a. It works instantly.

    Also another weird bug that I came accross: if the .m4a file is too small (like under 1kb), you can't hear it on the app.

    I hope I helped somebody! Thanks!

  • Hey everybody, let me explain in detail my question: I want to create a multiple level game (like a quiz game), and instead of creating each level or question in a separate layout, I want to create an XML file where I can much quicker add questions and answers on them. Is it faisable on C2?

    Thanks!