lollipoppy's Forum Posts

  • Thank you dop2000DeltaStarStudios

    I added boolean variable to check the game is finished or not as you advised

    and it works perfectly.

  • Hi, I'm making a quiz game.

    There's a function that resets question.

    and I want it to stop working when the game is over until the layout is restarted.

    Is there a expression that stops function working?

  • dropbox.com/s/sujrkr4imdx6o59/quizanswersexample.c3p

    Thank you so much!

    This has been a great help.

  • First, place the correct answer/value in a random position. Store this value so that you have something to compare the user answer with as well as to check against a duplicate when picking random values in the next step. For each of the remaining three positions, chose a random non repeating letter by using the advanced random plugin. If the correct answer is randomly picked, then ignore that result and use the next result.

    To use the advanced random plugin, first use the create permutation table action with offset 1 and length 26. This will generate the numbers from 1 to 26 and then randomly shuffle them, each one corresponding to a letter of the alphabet. To retrieve the values, use the AdvancedRandom.Permutation expression, where AdvancedRandom.Permutation(0) would be the first value, AdvancedRandom.Permutation(1) would be the second, and so on.

    So for each answer choice that isn't the correct one, put the next permutation value in sequence (since they're already shuffled), only if the value doesn't match the correct choice. If it does, skip that permutation and continue with the next.

    Thank you for the detailed reply.

    Thanks to your explanation I got an idea where to start.

    But since I'm not so familiar with construct3,(actually I'm noob to any kind of game making) I have hard time implementing the idea into actual project.

    Could youn please elaborate a little more including some example expressions?

  • Hi.

    I'm trying to make a quiz game where all the answers are single alphabet letters.

    Questions are given with pictures.

    For example, a picture of a frog is given as a question, then four alphabets are given to choose from.

    The player is to guess the first letter of the object in the picture.

    (In this case, F)

    Here, I want the four given letters to be one correct answer and the rest to be not repeating random letters(out of 25 other alphabet letters).

    How can I do this?

    I've studied some of the related tutorials but none of them uses random answers out of a answer pool.

    Please help.

  • You do not have permission to view this post

  • If your audio files have just numbers for names (1, 2, 3 etc.), then use str() expression:

    > Audio Play By Name str(Sprite.AnimationFrame)
    

    Also, AnimationFrameCount is the quantity of frames. You need AnimationFrame.

    Thank you so much again.

    Your tip solved my problem and saved a lot of my time.

  • I have an animation with about 100 frames and want to play audio files(also about 100 matches each frame) when clicked.

    I've tried setting the audio file name to Flashcards.AnimationFrameCount, which is the current animation frame.

    and changing the names of all audio files to the matching frame number.

    but The error says the parameter does not take number.

    How can I make each audio files to play at a matching frame?

  • Always wanted to make one of these :)

    https://www.dropbox.com/s/fg8aegqmpu91uid/MatchLetters.c3p?dl=0

    I tried to edit the file you uploaded last time and try to make it myself, but it was too difficult.

    Thank you so much. You're so kind. :')

  • I'm trying to make a memory card match game for my child where matching 2 cards are not identical.

    To be specific, the cards are 52 in total with big and small alphabet letters.

    A matches small a, B matches small b and so on.

    the cards are in each frame in one animation(A-Z, a-z) and all I need to do is draw out random frame number.

    But I have no idea how to draw out random sets of (big letter, small letter).

    Can anyone please help?

  • I found this confetti effect made with javascript.

    https://www.construct.net/en/tutorials/confetti-effect-javascript-2508

    I tried copy&paste but it doesn't seem to work.

    How can I import the effect and use it in my project?

  • You do not have permission to view this post

  • Duplicating 78 rather large images is definitely not a good idea.

    It can be done much easier and without any arrays:

    https://www.dropbox.com/s/gvjjh8y0lm60b6e/ABC%20ZOO.c3p?dl=0

    Thank you so much.

    I'm amazed you made it so much better by replacing just a couple of commands.

    My daughter played the game today and liked it a lot

    and I said a good man on the internet helped me making it.

    Thank you!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use "Audio Play by name" action. And in Name put:

    choose("sound1", "sound2", "sound3", "sound4", "sound5")

    Thank you so much again!

    I wonder if you could help me with another problem I have with my project(memory match game).

    Since English isn't my first language, I have hard time explaining the details of my problem.

    https://drive.google.com/file/d/1Xw7JSrDU36QSKauGbrg19sZrBY5-1tyT/view?usp=sharing

    In the project, I added 78 pairs of cards in the animation

    but the method in the tutorial only draws the first 16 cards.

    How can I make it draw totally random cards out of the entire deck?

    Please have a look at my work and see if there's a change I could make.

  • I have 5 SFX files to play at a certain condition.

    Is there a way to play them randomly each time?

    It doesn't have to play in a order.

    Please help!