VikasSanstha's Recent Forum Activity

  • Hello friends,

    I've been struggling to figure out how to achieve this simple functionality. I thought it would be using tokenat, but nothing I have tried has worked. Any help is appreciated.

    The actual use case is this. On the right side a random shape/color combination is automatically loaded. Then the user must ID the shape and its color by choosing a shape and color name from the left. I can do everything else, but this above part has me stuck. These are just normal text boxes with pre-set text.

  • I'd like to batch update/change these four fields for all 75 or so of my project files. I see it's in project.c3proj

    "author": "",

    "authorEmail": "",

    "authorWebsite": "",

    "appId": "",

    Any risk in directly editing all of these? Just change the suffix to zip, edit the files and then change it back.

    Thanks

  • You are on the right track, just need to add your favorite permuation table :)

    https://www.dropbox.com/s/k4ahbf23hm1d15g/FindAnImageQuiz%20-%20imgs%2C%20sounds%2C%20array.c3p?dl=0

    Awesome! I've got it working with the audio already. Excited to flesh it out. I'll send along the final. Many thanks for the help. Very valuable assistance.

  • There is a simple way to display multiple random images from which only one one is correct. Here is a demo:

    https://www.dropbox.com/s/a9c91e2ecobljk8/FindAnImageQuiz.c3p?dl=0

    This is brilliant, thanks so much. I am really humbled by your mastery of this craft.

    Do you think this could be adapted to work with a scenario where the images are all in the files section of the project? It's just that I have 300+ images in one scenario (the Hindi Barakhadi), and I have to correlate them all with sound files that have the same name prefix. Maybe instead of animation frames it could use an array that matches the file names?

    Here is your file with a few sample required images, sounds and array, if you have a chance to ponder it.

    dropbox.com/s/fiaj6p1lntkfu7j/FindAnImageQuiz%20-%20imgs%2C%20sounds%2C%20array.c3p

    In this case the question would not be text or a picture that must be identified, but rather a sound file playing, then the user must match it. I can't use TTS because the core component is the Hindi Barakhadi, the vast number of consonant/vowel combinations, which cannot be done properly with TTS, only audio.

  • so to pick the random sound I would do this

    set gloabal string pickedConsonant to: choose(ba,cha,ga,ha,...)

    to play the correct audio assuming it has the same name:

    play audio by name: pickedConsonant

    now create the answer image assuming they have the same name

    create object by name: pickedConsonant

    so now create the wrong answers

    repeat 3x

    create object by name: choose(ba,cha,ga,ha,...)

    to compare if the player has selected the correct answer you can compare the name of the clicked image with the string pickedConsonant

    Thanks so much. I will work with this and let you know how it goes. Much appreciated!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes store the choose(ba,cha,ga) in a string and then play the audio from that string..

    see my answer on your other question. I hope I could help :)

    Thanks, I understand this now.

  • Hello friends,

    I have honestly worked very hard and learned a lot since first starting with Construct a few months ago, but this kind of quiz mechanic is something I just don't know how to do. I wouldn't normally post asking how to do something from the ground up like this.

    I'm a teacher in India, and I'm making all educational content. I am extremely motivated to learn how to achieve the functionality below, the basic concepts of which I can then adapt and apply to a wide variety of content:

    dropbox.com/s/me7mgmaedcg5ow9/basicAudioQuiz.c3p

    1. A random audio file is played from a group of related files.
    2. There is a matching set of images that share all the same file prefixes as the audio files.
    3. Three possible answer matches are generated from these image files, with one of course being correct. They are randomized.

    I can do the other parts to turn it into an engaging game, but I just don't understand the logic required to make the main mechanic work properly. The use scenario I am posting in the project file above is to teach basic Hindi consonants. The project file includes a set of audio files and matching images.

    I would greatly appreciate any help. Thanks.

    Tagged:

  • Hello friends,

    If I have five audio files under Sounds, called a,b,c,d and e.webm, and I play them at random using choose

    on timer>play (by name)>choose("a","b","c","d","e")

    Is it possible to then store in a variable the name of the audio file that is then played?

    Many thanks

    Tagged:

  • Hello friends,

    I have made a simple matching game with a target image and a grid of six images (I'm calling them "spawn images") that you have to pick from to match the target (by animation frame comparison).

    The target and spawn images have a lot of animation frames, and therefore there are a lot of non-matches since the grid has only six images (it's for small children). I'd like to use a timer or another method to periodically change to a different range of frames for both the target and spawned images, thereby limiting the number of images used and creating more matches.

    The spawned images are randomized, and the target image goes in a sequential loop, but the frames are indentical for both. I don't want to split the images into separate animations, just to use a range of the available frames.

    I'd prefer to state it in terms of a percent of all frames, since I will add/subtract content over time. I also have several different categories (animations) of images, each animation with a different number of frames, so a percentage is much better.

    Basic use scenario is:

    1. User chooses animals category. The animals animation has 40 frames.

    2. The first 25% of frames are employed initially.

    3. After 20 seconds (or whatever, determined by a timer), the next 25% are used

    4. etc. up to 100%, and then cycle.

    Any help is greatly appreciated. Thank you.

  • It doesn't seem as though it's directly possible. Are we meant to just do it like this?

  • Thanks for the reply! Sorry you couldn't download it. I thought I stripped out all 3rd party elements, not sure what else the problem might be. I will try to implement your advice. I'm not sure if the reverse part is reflected in your code sample. I wouldn't necessarily know how to do that otherwise, but I will work with it in any case. Thanks.

  • You do not have permission to view this post

VikasSanstha's avatar

VikasSanstha

Member since 24 Jul, 2021

None one is following VikasSanstha yet!

Trophy Case

  • 3-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies