The Dink Network

Reply to Re: Mkbul's code error thread

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
March 24th 2010, 08:14 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
You're declaring &crap in a single line every time, that doesn't work. Change int &crap = random(10, 1) into:
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