Underdog's Recent Forum Activity

  • Hi everyone,

    How do you mute all musics from the Music folder?

    How do you mute all sounds from the Sounds folder?

    When I use Silent, it mutes all sounds and musics :(

    All my sounds have already a tag, so I can't really use a generic tag.

    I created 2 different buttons that will toggle a variable On/Off for Music and for Sounds.

    When Music=0, I would like to mute all Musics

    When Sounds=0, I would like to mute all Sounds

    In the action Audio, I don't see any action that can silent a folder?

    Is this possible?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot Asmodean

    this is exactly what I was looking for.

  • Hi everyone,

    I have a question for localisation and I can't find what I'm looking for on the net.

    For localisation, I'm looking for a list of the country languages code that could show the following example for each country:

    USA: en-US

    England: en-UK

    Canada: ??? en-FR or fr-US ??

    etc...

    I only found the 2 first letters or the ISO code that I don't use as I use the Browser.language

    thanks for your precious help

  • dop2000

    I wanted to tell you it works perfectly.

    Thank you again for your help.

    I might have another question.

    Let's say that the Player has seen all sentences.

    Do I have to do something specific when the array is empty?

    lol I think I found. I just need to check if the Array is not empty I guess?

  • Thank you dop2000

    I'll check your demo.

  • Hi everyone,

    In my game, I would like to display a few random story sentences that will be displayed after [x] levels.

    So far, I created a JSON file for all my sentences that will populate my ArrayStory.

    When the conditions are met, I randomly choose a RandomIndex from my ArrayStory to pick a sentence and then I delete this index, to make sure the Player won't see it again.

    The problem is:

    I generate my array on start of the level from the JSON and obviously, it fills the array with all sentences.

    So, how can I load the JSON file only once and populate my array and then, each time a randomindex is chosen and deletes the index from the array, it saves the array?

    I have an idea that I would like to share with you:

    If I create a variable: ArrayStoryFilled = 0

    Then, when I load the JSON file into my ArrayStory the first time it sets ArraStoryFilled=1.

    When ArraStoryFilled=1, I save this variable in LocalStorage.

    Can I save an array in LocalStorage?

    then each time a new sentence is picked and deleted from the array, I save the array.

    Does localStorage work also on mobile?

    Does it sound like a good approach?

    it's the first time for me that I tackle save and load system.

    Thank you

  • same error in preview on mobile.

    It works fine on PC :(

  • This is great!

    Is it possible to add a BBCode for shadow ?

    Thanks

  • dop2000

    This is a great example. Thank you.

    Omg, it seems also that I had a Construct 3 bugs with the Text object.

    I was not able to change the size of the text object without scaling the height and the width at the same time.

    After closing and reopen Construct, I was finally able to change the height without affecting the width :)

    Also, thank you for your time, definitely, your example will probably help me for another thing I wanted to do with text scripting :)

  • dop2000

    Thank you Dop2000, I'll take a look at your example.

    I just needed Text object.

    Cheers

  • Hi everyone,

    it might be a dumb question but I would like to create a Text field of a certain Width and Height.

    The Object TextBox does not exist anymore in Construct 3.

    Then, within the text field, I would like to have the text wrap automatically when a sentence is longer than the width of the field.

    The text is coming from a Json file and can be translated in different languages.

    I ask this question because first, I can't have a defined size for the text field as it scales in width and height simultaneously.

    So I had an idea.Maybe, if I have an instance variable that will count each character and if a line of the sentence reaches this variable, it will automatically create a new line to continue the sentence.

    I don't know how to do it and it feels tricky and hard to manage, don't you feel?

    Do you have an easier solution?

    Here is an image of what I try to achieve (the green text field, so the text fits in it)

  • Omg. Thank you so much.

    I won't be able to find it alone.

    Sincerly thank you.

Underdog's avatar

Underdog

Member since 1 Feb, 2013

None one is following Underdog yet!

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies