Hi guys, I've got an array of blocks which contains the left, top, right and bottom positions of the blocks.
I need to draw the blocks using DirectX when everything else like the healthbar and lives get drawn...
When I put this to draw the first block it's fine:
But when I put this it just sits there and locks up!Code:ssurface.FillStyle = 0 ssurface.FillColor = blocks(0).getFill ssurface.ForeColor = blocks(0).getBorder ssurface.DrawBox(blocks(0).blockRectangle.X, blocks(0).blockRectangle.Y, blocks(0).blockRectangle.Right, blocks(0).blockRectangle.Bottom)
What's happening and what should I do?Code:For i As Integer = 0 To blocks.Length - 1 ssurface.FillStyle = 0 ssurface.FillColor = blocks(0).getFill ssurface.ForeColor = blocks(0).getBorder ssurface.DrawBox(blocks(0).blockRectangle.X, blocks(0).blockRectangle.Y, blocks(0).blockRectangle.Right, blocks(0).blockRectangle.Bottom) Next
Thanks in advance, knxrb.






Reply With Quote