Raydred
November 5th, 2002, 10:02 PM
ok im making a break out game..
i can dup the block mc's and make the first row of blocks, but how do i get the 2nd row, the 3rd. etc..
ex: i want it to look like this
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
This is the code i have..
for(i=0; i < 7; i++){
duplicateMovieClip(block,"block" add i,i);
xpos = Number(startx + Number(i*27));
rColor = Number(000);
_root["block" add i]._x = xpos;
}
here is what i have so far.
http://www.raydred.com/arcade/breakout/dredBreakout.html
any thoughts or ideas?
Thanks!
ps, its actionscript, i used the php codeing block cause of the pretty colors =)
i can dup the block mc's and make the first row of blocks, but how do i get the 2nd row, the 3rd. etc..
ex: i want it to look like this
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
This is the code i have..
for(i=0; i < 7; i++){
duplicateMovieClip(block,"block" add i,i);
xpos = Number(startx + Number(i*27));
rColor = Number(000);
_root["block" add i]._x = xpos;
}
here is what i have so far.
http://www.raydred.com/arcade/breakout/dredBreakout.html
any thoughts or ideas?
Thanks!
ps, its actionscript, i used the php codeing block cause of the pretty colors =)