I am making a kids game on tumult hype as a silly extra credit for a class. I’ve drawn all of my own elements in exception for a few reset buttons in my scenes.
The point of the game is mixing paint colors. I have the intro scene with a start button all squared away and works normal. Then, it brings you to the main scene that has a pallet and 6 tubes of paint (red, orange, yellow, green, blue, purple). The idea is that the user can choose 2 of the colors (2 clicks) would then trigger a jump to scene which is specific to the colors that were chosen ( redPaintTube and bluePaintTube, jump to scene purpleBanner). Each tube of paint does have a inner timeline besides the main timeline all in the main scene, all named appropriately (redTimeline, orangeTimeline, etc) and each of the colored timelines have a motion of when the colorPaintTube is clicked a squirt comes out and forms a glob on the pallet; all of the motions for each timeline and paintTube work normal- no issues. All of the color combinations have a specific scene to jump to which I call “bannerScene”, again all named appropriately (purpleBanner, greenBanner, etc), I have been noodling with javascript and had taken a look at some game templates in the tumult forums that helped me sort out a possible script for a “On Scene Load function initializeScene that has the custom data with all the color combinations in it, and then a “handlePaintTubeClick” for each paintTube for “On Mouse Click”. I had the AI assist in the console log read it and it came back saying exactly what I want it to do, however when I preview the hypedoc in chrome, it does not perform the “jump to scene”, it just lets me press all the tubes and watch the squirts and globs appear on the pallet.
I’ve spent a lot of time on this project and would really like some help fixing it so it performs properly. Next term I am taking a web fundamentals/html class because I do really want to learn how to write javascript/html code and all, but until then, i’m stuck with the internet and what my teacher knows- which he doesn’t know how to do this sort of set up.




