Hi all, im new here.
Making games with Construct 2 is fun, but there are tons of things of which i have no idea how to do them. One of them is playing a random sound effect.
I've added two explosion sounds into my project. Im working on an Asteroids-ish game where you shoot enemies. When they are destroyed, there's an explosion. Now i want to add an explosion sound effect and let the game pick either one of them for variation sake.
How do i do that? It's probably very easy but i've only just picked up Construct 2.
I've commented it, it should be quite straightforward.
You need to adapt it to your project, but the idea is there.
Develop games in your browser. Powerful, performant & highly capable.
Ah, yes, that makes sense. I guess it WAS very easy. :)
When i add my own global variable and enter int(random(2)) in the value textbox, Construct 2 crashes when click the Done button:
<img src="http://www.themightyatom.nl/screenshots/C2CheckFailure.jpg" border="0" />
It does this every time a try it again. What now? :(
This has already been reported numerous times in the 'Bugs' section, and is currently been dealt with.
Yeah, i found the thread in the Bugs forum right after i posted that.
I'll be waiting for a fix. :)