For some reason I am having trouble getting this code from the tutorial in the Demo version of DP.
Running it brings this error.
Could not determine parameter type of "levels-y" at line 24
I cannot see why this is not working. I have copied it from the tutorial and cannot see an obvious reason why it doesn't like levels-y. Does this work on anyone elses machine? This is probably something stupid I'm missing, but I'm stuck unless I rewrite the object stack a different way. I was just wondering why it doesn't work, when it is the example code.
REM Project: Test
REM Created: 03/09/2006 21:59:02
REM ***** Main Source File *****
load image "pave11.bmp",1
sync rate 0
make object box 1,1600,10,2600
position object 1,0,0,0
texture object 1,1
phy make rigid body static box 1
for y=0 to levels
for x=0 to levels–y
make object cube ID, 0.2
color object ID, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
position object ID, ( x + 0.5 * y ) * 0.21 – 1.5, y * 0.21 + 0.1, 0
phy make rigid body dynamic box ID
position camera 0,40,-500
Check out Project Desert Storm