Allardje's Recent Forum Activity

  • Kyatric Thanks for the reply!

    I tried out some more things. Conclusion i get is that every thing has to be separated to work correctly.

    This way i need a lot of events to get the simplest results..

    Below is what i tried and it works but well.. that's a lot of events for something simple.

    Is this for now the way to go?

    P.s. here is the capx: https://www.dropbox.com/s/zp2f6bs1bkjng ... .capx?dl=0

  • Your second post was my question i had in mind .

    I had A LOT of webstorage functions in my game and i now am trying to tune them to LocalStorage.

    Somehow i do not get it working in any way. I can't even get a value to be written ( checking with debug LocalStorage shows empty ).

    Could you tell me why this isn't working:

    I use the "setup" key to set all values the very first time the game runs.

    P.s. Sorry if i am hi-jacking your topic.

  • Hi Yall,

    I think we all know what i mean when i say:

    Is it possible to let people log in by Facebook and actually fetch their info? Like the most apps now ( e-mail, name, friends etc ).

    I want to be able to let people log in and do something with their friends. Like sending a game request if they also play the game etc.

    As far as i found out you can only share a message and stuff like that.

    Is this the limitation or am i missing something important?

    Thanks in advance for your help and information.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    I want to be sure that a internet connection is available within my game otherwise other actions will take place.

    Now i did a test but it did not work.

    As in my test the position of a image should change once a internet connection should be available or not.

    It simply does not change and always results in the fact that a connection is available. Even if it is not.

    My code:

    This is a game for Android. Tested on Android.

  • Hey i actually integrated the script brunopalermo ,

    I pop up one question tho.

    While working on the answer system ( so if you press a letter button that letter will appear in the answer slots ) i am not sure how to.

    What i did is creating a text object on every "letter slot". These letters will be filled in with the right letter and will become visible if a right letter is pressed.

    That part would be fine to create i think i can manage it but somehow i want to cut the answer in letters just like you do when creating the right letters and random letters.

    Though my: find(uppercase(answer),mid(ALPHABET,loopindex,1)) won't work to get all letters.

    This is what it looks like atm:

    This is what i did. As you can see i tried using it the same way as it creates the letter slots:

    As you can see below creating the amount of "letters" is correct but my code isn't:

    This works for the letter slots and the amount of letters but not for the text itself: find(uppercase(answer),mid(ALPHABET,loopindex,1))

    Somehow the letters appear as 0 and -1.

    Can you please help me with that line of code? I think i'm heading the right direction but my line isn't completely correct.

    Thanks!

  • A quick (semi-related) question.

    Is the Android keyboard supported?

    I didn't use Construct 2 for a few months but at version 170 the keyboard couldn't be used from Android.

    Is this changed? Does a textbox trigger the Android keyboard these days?

  • Ok so i was thinking.

    I am not very good with Arrays but i think the next thing in my mind could fix my problem.

    Is there a way to check if a specific value is written into the array and if that matches the webstorage to delete it from the array?

    In my webstorage i will save: level1,level2 etc.

    In my questions file i will set the 6th line to level1,level2 etc.

    So if i'm right in my Array there will be all level values ( the 6th line ).

    Am i correct? And if yes could any 1 help me further with that technique? I know the logic behind it but i'm really not sure how to make it working.

  • Hi Yall,

    I have a quiz like system but i want all my questions to be shown only once.

    To do this i want to save it in a webstorage.

    Though i am not able to get this right with my current script.

    Can any one help me out? The script itself works perfectly and i get random questions every time.

    The thing is that i really want to only show them once and after that never again.

    The script:

    The way it fetches the questions ( from txt file ):

    This is a question;
    Answer1;
    Answer2;
    Answer3;
    Answer4;
    Answer2;
    1;
    |
    This is a question;
    Answer1;
    Answer2;
    Answer3;
    Answer4;
    Answer2;
    2;
    [/code:2fd3xnan]
    
    This way it takes line 1 as question, line 2,3,4,5 as answers you can give and line 6 as correct answer.
    
    I tried to save them on level, which is line 7 i added.
    
    Line 6 will be stored in the global variable currentNumber. Though i think i might mess up webstoragewise with the incorrect order of calling my functions.
    
    Any 1 here who can lighten me up?
    
    Thanks in advance!
  • Alright guys thanks for the info!

    A challenge is not really a problem but i just wanted to be sure that i would not start trying to create something that couldn't be done.

    Thanks!

  • Hi!

    I am working out a new game at the moment.

    Since i am still in the draw board state i would like to know if creating multiplayer for Android is worth it.

    In other words, is multiplayer for Android a good option these days?

    I did read some articles but because of the update speed of Construct 2 i never know if anything out of 2014 is still relevant.

    Any suggestions, tips and information is welcome.

  • Hi!

    I am no expert but my guess is that there is a bug in your Intel XDK.

    You should try to re-install Intel XDK and i bet that will fix it.

  • Thanks for your reply.

    Though i think this does not completely suits my game best.

    I do like the the way it uses separators.

    Is there a way to store info like:

    If level = 1 : Infos = "A|Answer1|Answer2|Answer3|Answer4|1"

    Than read it as "idontknow(3)" which should result in "Answer2" , "idontknow(6)" should result in "1" etc?

Allardje's avatar

Allardje

Member since 25 Jun, 2013

None one is following Allardje yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies