drawing stuff
Author |
Message |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: Tue May 27, 2003 10:12 pm Post subject: drawing stuff |
|
|
anybody hav an idea how i can draw bricks onto a screen (50 of em 10x5) and then take them away wen theyre hit |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: Tue May 27, 2003 10:15 pm Post subject: (No subject) |
|
|
i tried a for loop
code: |
for j : 1 .. 5
for k : 1 .. 10
Draw.Box (a1, b1, a2, b2, black)
a1 := b2
a2 += 40
end for
a1 := 1
a2 := 40
b1 -= 10
b2 -= 10
end for
|
but wen the whole prog loops back around they get erased |
|
|
|
|
![](images/spacer.gif) |
Asok
![](http://www.battle.net/war3/images/neutral/units/animations/pandarenbrewmaster.gif)
|
Posted: Tue May 27, 2003 10:29 pm Post subject: (No subject) |
|
|
if u're gonna keep it like that you'll need an array of booleans, one for each block. So if the boolean = true then it draws it, if it's false then it skips it or draws a white box or whatever. |
|
|
|
|
![](images/spacer.gif) |
Prince
![](http://www.angelfire.com/hiphop3/m-unit_hustla/images/fxckpare.jpg)
|
Posted: Tue May 27, 2003 10:34 pm Post subject: (No subject) |
|
|
is ther a way i could do it without the array of booleans |
|
|
|
|
![](images/spacer.gif) |
Asok
![](http://www.battle.net/war3/images/neutral/units/animations/pandarenbrewmaster.gif)
|
Posted: Tue May 27, 2003 10:36 pm Post subject: (No subject) |
|
|
yea, have all the bricks drawn and simply draw over it with a white Draw.FillBox
the have an integer keeping track of how many blocks you have left. |
|
|
|
|
![](images/spacer.gif) |
|
|