Reply to Re: Mkbul's code error thread
If you don't have an account, just leave the password field blank.
You're declaring &crap in a single line every time, that doesn't work. Change int &crap = random(10, 1) into:
And for the sake of clean code, put the int &crap above the start of the loop Also, I assume the goal you're after is that once the sprite has been touched once, the sound starts playing randomly forever right? Not just randomly on each touch? Cause then you need to change more stuff around
int &crap; &crap = random(10, 1);
And for the sake of clean code, put the int &crap above the start of the loop Also, I assume the goal you're after is that once the sprite has been touched once, the sound starts playing randomly forever right? Not just randomly on each touch? Cause then you need to change more stuff around