babark's Forum Posts

  • 8 posts
  • For doing it in event 2 of your pic...

    the object would be numwagon2

    The first expression would be: numwagon2.animationframe=numwagon.animationframe|numwagon2.animationframe=numwagon3.animationframe

    The comparison would be "="

    and the second expression would be 1

    It works now, thanks!

    Unfortunately, its now exposed another bug in my layout which I have to figure out. But at least now it is nicely random!

  • You could use a system->"pick by comparison"

    with an expression like:

    numwagon.animationframe=numwagon2.animationframe | numwagon.animationframe=numwagon3.animationframe[/code:3mw89q1q]
    

    I'm not sure I'm understanding how "Pick by comparison" works. When I select it, I have to choose an object, expression, comparison and value. How do I do that with the code you've posted?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Basically I want a while block to continue if any of the two conditions are present. What I currently have is this:

    This does it so that I can make sure 1 wagon isn't the same as the one just before it, but I can't check for all three. If I turn the While into an OR block, it becomes While OR numwagon.AnimationFrame.... OR numwagon2.AnimationFrame. If I don't do it, it seems to treat it as an AND.

    So how can I have an OR block INSIDE an While? Or is there some even simpler way to do this?

  • So I see now. Thank you korbaach, I can't thank you in PM yet, I got the older version...I'm trying to make sense of it, will understand it slowly. You've done what I wanted perfectly, almost making me want to copy it verbatim .

  • I can't open your capx because apparently I'm using an older version of C2. Can't change right now, because I'm collaborating with someone else who is using the same version.

    Anyhow, unless I'm explaining very badly, I'm not sure I can use frames, as all 5 buttons are showing at the same time...

    Those are 1TestBtn through to 5TestBtn (and NumberSoundBtn).

  • Don't test for not-equal right after checking for equal - use an Else instead. Right now event 9 will run, set QuizAnswer to something else, then event 10 will run, since you've just forced QuizAnswer to not be 1 anymore. 'Else' will only run 9 or 10, never both. This applies to anywhere else you check for "something", then check for the "opposite".

    Thanks, that actually fixed up my PS issue!

  • Having just learnt about blank subevents, I've made these modifications (and I hope double-posting is not a huge wrong thing to have done):

    (tapping on 2TestBtn through to 5TestBtn is similar to 1, so I've condensed it in the image for neatness).

  • Hello everyone. First post here, sorry if I'm asking an idiotically simple question. I'm basically making a learning/testing game thing, and this is what I have so far:

    (speaking of which, is there a simple way to export 1 event sheet without having to link the whole complicated .capx?)

    It is essentially a game where the player clicks the speaker icon and a number is spoken out, and the player must select that number from on the screen. If correct, a "Yay" sound plays, and the next number starts (which the player must then click the speaker on to hear and then select, etc.). There are 5 total questions and the player must get at least 3 correct. The numbers are chosen at random (from out of 5 at this level).

    There is a quiz example on this site here, but it seems to be somewhat different (and not random). I realised after the fact, that the way I'm doing it now would require way too many blocks if I want to have the sound play automatically (and if I want to have a "tick" show at the correct answer if the player clicks the wrong answer).

    So I ask, is there a better way to do this?

    PS: When I had the last condition set to Qnum=4, it completed (as if correct) after only 2 questions. Now that I've set it to 3, it seems to continue forever.

    PPS: "Cheeko" was an Audio object from one of the first layouts in this project, but after I created it, the "Audio" option disappeared from "Insert Object", so I had to put everything in Cheeko for the rest of the project. Is this normal?

  • 8 posts