I'm working on a game atm. and in that game I have this piece of code, to draw some vertical ropes:
function DrawRopes()
if NumRopes > 0
for i=0 to NumRopes-1
` This works:
d3d_line Rope(i).x, Rope(i).y, Rope(i).x, Rope(i).y2, 0xff000000
` This does NOT:
for y3=Rope(i).y to Rope(i).y2
d3d_dot Rope(i).x, y3, 0xffffffff
next y3
next i
endif
endfunction
I don't use both of those "blocks" at the same time, but I put them there so you can see both.
The line code works fine, but the dot code does not. First of all it doesn't actually draw any dots to the screen, and when it reaches the top of the screen the program crashes(freeze).
I have tried it with DBPro's regular drawing commands, and the same thing happens...
Any ideas?