desriix's Forum Posts

  • 11 posts
  • That's because you are removing rows from the array, but still selecting random(0,9) index. Also, don't use round() with random, it causes non-uniform distribution of results.

    Change it like this:

    Set randomNumber to int(random(0,QuestionArray.Width))

    ...Wow, that worked. Thank you!

    I'm still trying to understand the difference between the two. I read the manual on Arrays & Parameters but it didn't really cover this. Do you know of a tutorial that covers this more?

    If you don't that's okay, I'll still continue to do some searching. I'd like to be able to troubleshoot on my own if possible in the future.

  • Here's a screencast of the issue also: http s://imgur.com/a/U3P7bWf

    Edit: Sorry, Didn't realize you'd responded already.

  • Sorry, I'm not sure why or how that happened with the link.

    New link: http s://jmp.sh/zaiEXnF

    Backup link: http s://gofile.io/?c=tZnFOq

    The text boxes are definitely large enough. To better describe whats happening:

    1. Quiz questions & answers pop up

    2. User clicks answer, correct or incorrect is displayed

    3. Next question is displayed, above process repeats

    4. After about 3-4 questions, blank spaces & no questions or answers show up

    5. Clicking 2-3 times shows the "correct/incorrect" displays but nothing else.

    6. Then questions seem to resume and pick up right where they left off before the 'glitch'

    Every single question does eventually show up so I'm thinking it's definitely not the size of the text boxes.

  • Hi, I finally figured out how to get my game to delete an item from the array using:

    -> QuestionArray: Delete index randomNumber from X axis

    I ran the game through debug and it works! I was stumped on it for a while, but it does delete questions as they are shown so they don't repeat.

    Now I have a new problem.

    Every so often when I click to generate the next line of info, the text element that I use to show the data from the Array vanishes and only a blank space is shown.

    I thought maybe it was showing the empty spaces where the old data was, but after some testing that's not the case. The text boxes are actually disappearing like they've gone invisible or been destroyed. But there are no commands for them to do so and on top of that it's randomly and inconsistently occurring.

    I'm not sure what I'm doing wrong or what would cause that to happen?

    Here's the CAPX: http s://jmp.sh/v/XG3gFh394mtLhoDgKLcu

    If someone could take a peek, I'd be greatly appreciative.

  • Thank you, but I'm having trouble understanding that. I'm still new to Construct so maybe its a little over my head.

  • Hi,

    I'm building a trivia game based off of this tutorial: construct.net/en/tutorials/trivia-game-929/page-2

    I've customized the events a bit, but basic functionality for pulling random questions is the same. However I'm having trouble figuring out how to prevent it from pulling the same question more than once.

    Right now the game pulls a random question and displays it, but sometimes it will pull the same question up 2 or 3 times in a single game, which isn't ideal.

    I did some searching and learned that I could have a question deleted after it was shown, so it wouldn't be pulled up more than once:

    (-> QuestionArray: Delete index randomNumber from X axis)

    But when I put that code in only the first question shows and then the rest are blank.

    Then I found info that said I should reduce the width of the Array by 1 to have the Array table resize to where it wouldn't pull blank spaces where answers used to be:

    (-> QuestionArray: Set size to (-1, 1, 1))

    But it didn't work. So I'm stumped and wondering if anyone else has any insight. This is day 2 after searching & trying different things & reading the manual.

    So, what's great is it looks like the recent Construct update fixed the issue somehow!

    I haven't tweaked or changed anything, so it has to be the update. Not sure what that means, but just thought I'd let you guys know.

    Thank you for responding to my inquiry.

    > After several hours I'm finally stumped! The full game is private, but I have attached a .capx that has the same issue for me.

    >

    > In my game, clicking on an object causes a sound to play. Works on Computer Browsers but Mobile browsers don't play any sound no matter how much I tap the screen, or tinker with the settings.

    >

    > h*t*t*p*s*://1drv.ms/u/s!AqQz4jQiBdANhfZWBxSI_eFNGB1eLA

    >

    > I downloaded an example .capx from somewhere to see if the sound for it would play on my mobile browser, and it does. But no matter how I try, I can't reproduce the same results in my game.

    >

    > I even tried downloading the sound file from that .capx and uploading it to my test file (in case my sounds are bad?) and I also tried uploading my sound files into the working example .capx. Doesnt work.

    >

    > What am I missing?

    >

    >

      >
    • My sounds are in the sound folder
    • >
    • I have .ogg and .m4a formats
    • >
    • Sound initiates on tap (or click)
    • >

    As long As I used other formats than .webmI had exactly same issue.

    I believe I originally had .webm, the format .wav files are automatically converted to in Construct.

    When that didn't work, I did some reading and uploaded additional .ogg and .m4a files.

    I've spent a couple days on this, trying different things and reading the database/searching the forums and no sound plays whatsoever no matter the file format.

    Your example file plays fine in my phone's browser with no issues. It also plays fine when I created an apk and installed it. I have an LG G8X ThinQ w/ Android 9. Not sure why you're having problems.

    This might be an obvious question...are you sure you have your volume turned up?

    I import my audio as wav files, which then gets converted to webm for best compatibility across platforms.

    Lol, it's okay you never know. I do have my volume up all the way & sounds on. I have an iOS device, and I've tried it on 3 different iOS mobile devices.

    I wanted to make sure it wasn't my device, so I tried 2 games in two different browsers. A game from the Construct arcade and my own demo .capx. Sound in the game in the arcade plays, but mine does not.

    How very strange. Perhaps if someone who also has an iOS device could try it? Are there any known issues with iOS devices and sound?

    Anyone? Is there a place where I can contact official support or something vs. waiting on a possible response in a forum?

    After several hours I'm finally stumped! The full game is private, but I have attached a .capx that has the same issue for me.

    In my game, clicking on an object causes a sound to play. Works on Computer Browsers but Mobile browsers don't play any sound no matter how much I tap the screen, or tinker with the settings.

    h*t*t*p*s*://1drv.ms/u/s!AqQz4jQiBdANhfZWBxSI_eFNGB1eLA

    I downloaded an example .capx from somewhere to see if the sound for it would play on my mobile browser, and it does. But no matter how I try, I can't reproduce the same results in my game.

    I even tried downloading the sound file from that .capx and uploading it to my test file (in case my sounds are bad?) and I also tried uploading my sound files into the working example .capx. Doesnt work.

    What am I missing?

    • My sounds are in the sound folder
    • I have .ogg and .m4a formats
    • Sound initiates on tap (or click)
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 11 posts