Allardje's Recent Forum Activity

  • Hi!

    While i am working on my game i really got the feeling i'm not doing it right..

    I have a quiz game where i got of course a lot of questions and answers.

    As for now i use this:

    And to check:

    Something tells me this can be done way much quicker, easier and better.

    The way i check the correct answer is a good working and easy mechanism if you ask me.

    I've got like 800 questions.. So that's why i want to be sure i am doing the right thing.

    Can any one clear me up about this one if this is the way to go or not?

    Thanks!

  • Ashley Thanks for your reply.

    Will find another solution for my issue. Thanks for the quick answer!

  • Try Construct 3

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

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

    I am working with a lot of sounds in Construct 2 at the moment and one thing i just can't figure out is:

    How do i get the length of a sound file? Aka duration.

    I've figured out that Audio.Duration is something but i tried some combo's that didn't work ( like Audio.Duration("Sound1"), Sound1.ogg etc.

    So my question is fairly easy. Is there a way to get the duration of a sound?

    Why? I want to use the duration of a sound to change a objects width.

    Any help is appreciated! Thanks in advance!

  • Hi Yall,

    I'm having a little issue here.

    My situation is the following:

    • I have sounds named:
    • Animal1
    • Animal2
    • Animal3 etc..

    Once going to a layout it has pick one of the sounds listed above.

    There is a button you can click to play that sound.

    Once the sound is over it has to be saved in a Webstorage so we know that the sound is played before. As far as my concern i think i would have to save it as:

    Webstorage > Set local value "Animal1" = 1.

    So it should:

    Start of layout > Select sound ( between animal1, animal2, animal3 ) where Webstorage "animal1/animal2/animal3" = 0

    "for this example sound 2 ( animal2 ) is selected"

    Click on button > Selected sound will play

    On sound ended > Set webstorage "animal2" = 1

    So the next time it should be:

    Start of layout > Select sound ( between animal1, animal3 ) where Webstorage "animal1/animal3" = 0

    "as you see sound 2 is done and will never be selected again"

    The point that i can't fix is selecting the sound on random order, but only if the webstorage for that sound is "0".

    Any help in the right direction would be lovely!

    Thanks in advance!

  • Thanks for your reply!

    I did not use tags but after reading your reply i did have the idea to name the files as in: categorylevel1, categorylevel2

    Now i can use global variables "category" to set the category, and level"currentLevel" for the current level!

    Thanks for the hint!

  • Hi yall,

    I am with a little issue here.

    As active followers of the forum will notice is that i post pretty much "How do i...?" threads.

    I am doing that because i want to learn how to do some steps the right way and not my way ( which is mostly very unclean ! )

    As for this item i have a level select area.

    Let say:

    Level 1

    Level 2

    Level 3

    Each level contains a play button. Each play button has it's own sound. By clicking the play button the right sound has to play.

    Yes, it "sounds" ( no pun intended ) fairly easy but the only way i can be thinking of is like:

    Somehow i have the feeling that is NOT the way to do it since i have 100+ different levels..

    Please enlighten me !

    Thanks in advance!

  • Thanks Ash, i indeed did read that but to be fairly honest, i have no clue how much KB a webstorage takes in.

    My guess was that a simple webstorage like "Yes = 1" would take no more than like 1KB each. Ofcourse i could be wrong but i have no idea how to measure that.

  • Alright! Thanks for your answer !

  • Thanks for your reply.

    So if i'm correct you are saying:

    Webstorage > Set value "level1" = 1 (x1000 as for level 2, level 3 etc.)

    No problemo?

    Keep in mind that the whole game will be designed for Android ( don't know if this makes any changes ).

  • Hi Yall,

    I am creating a game where you can unlock 100's if not 1000's of things.

    The way i know how to save it ( Android ) is using webstorage.

    Though i am very curious if there is anything i have to keep in mind using webstorage? Is there a limit i should use? Could i just save 1000's of things?

    As far as i know i am saving things like:

    Level 1

    • Level 1.1.1
    • Level 1.1.2
    • Level 1.1.3
    • Level 1.2.1

    And that for 100's of levels.

    Just before i go trough all the hassle i want to be sure that i can use webstorage like that or if there is any method i should use.

    Thanks in advance!

  • Hi Guys i found out i have one more question.

    After this i still don't know how to create random letters.

    Well, i know how to create random letters but i don't know how to make sure the letters are included that are needed to create the answer.

    Can any one help me out with that one?

    As seen in the image on my first post ( the A,W,A,A,A,A,A,A,A buttons ).

    I will take the word "Construct" for example again.

    I have 18 Letters/Buttons. These letters have to be random but the letters C,O,N,S,T,R,U,C,T have to be included in those letters.

    So in this case i need the letters construct and 9 other random letters ( A to Z ).

    The letters construct is actually a global variable.

    Sorry for all these questions but i am pretty noob at that kind of things !

    Thanks in advance!

  • Wow guys thanks! Both work like a charm!

    I got so many more things to learn!

    Great thanks!

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