|
-
Feb 5th, 2009, 12:14 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] DirectX Problem
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:
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)
But when I put this it just sits there and locks up!
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
What's happening and what should I do?
Thanks in advance, knxrb.
Did I help you with your problem? If I did rate me by clicking here: Rate knxrb

-
Feb 5th, 2009, 02:06 PM
#2
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|