In C3 editor on the Start Page search for "audio analyser" template.
Develop games in your browser. Powerful, performant & highly capable.
You do not have permission to view this post
Event 4 is running on every tick, which is not great.
Select event 3 and press X to add an "Else" condition - you should re-initialize permutation table there.
Also, I made a mistake in my screenshot - "Add 1" action should go after the "Set text".
You can create many empty frames. If you think there may be a maximum of 20 images, then create 20 frames, or even 30.
Here is how you use it with a list of words
If math functions scare you, you can use the method I posted in your other thread, it's essentially the same:
construct.net/en/forum/construct-3/how-do-i-8/spawn-objects-randomly-away-164182
There are lots of solutions on stackoverflow, but all easy methods like Object.assign(json1, json2) overwrite arrays instead of merging them.
stackoverflow.com/questions/21450060/how-to-join-two-javascript-objects-without-using-jquery
stackoverflow.com/questions/433627/concatenate-two-json-objects
1. You need Permutation Table feature of the AdvancedRandom plugin. See this demo:
howtoconstructdemos.com/display-random-images-without-repetition
Instead of the sprite frame you can pick an entry in an array, or a token in a string.
Yes, create a few empty frames in the animation, set a different frame for each sprite instance and load an image. (not with AJAX, but using "Sprite Load from URL" action)
Here is a demo I made for someone else:
dropbox.com/s/whxplq7lzdu5gyo/HorizontalScrollingMenu.c3p
There is an Audio Analyzer template in C3, have you seen it?
Member since 26 May, 2016