Hi leigh,
I've had a quick look at your code. You're in luck as the problem you have has nothing to do with windows XP (it's what I use).
I'll do the easy one first.
The reason that you are getting object already exist errors is to do with where you're putting the "inc ID" command. This needs to go before the lines where you make, color and position additional objects.
Quote: "I get a error Could not determine parameter type of 'levels - y'"
This happened to me when I copied and pasted your code into DBPro and tried to run it. However, after a bit of messing around I found that if I typed in the line:
position object ID, ( x + 0.5 * y ) * 0.21 – 1.5, y * 0.21 + 0.1, 0
,instead of just copying and pasting it, the code ran fine. I have no idea why this worked but you might want to try and see if it works for you.
I've updated your code with the modifications I made to sort out the object already exists errors and commented where I've made changes. However, I do not have dark physics so had to comment out all the lines relating to it (again I have shown this in the code).
rem phy start :`commented out as I do not have dark physics
sync on
sync rate 60
autocam off
make object box 1, 10, 0.5, 10
position object 1, 0, -0.25, 0
rem phy make rigid body static box 1 :`commented out as I do not have dark physics
position camera 0, 2, -4
levels = 20
ID = 1
for y = 0 to levels
for x = 0 to levels - y
inc ID :`<<<<< put inc ID here so that the value of ID = 2 for the next object (you already create object 1 at line 6)
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 :`<<<< type this line in do not copy and paste????? Don't know why this works
rem phy make rigid body dynamic box ID :`commented out as I do not have dark physics
next x
next y
do
if spacekey()
inc ID :`need to increase value of ID before you make the sphere
make object sphere ID, 0.6
position object ID, camera position x ( ), camera position y ( ), camera position z ( )
rem phy make rigid body dynamic sphere ID :`commented out as I do not have dark physics
rem phy set rigid body linear velocity ID, 0, 3, 10 :`commented out as I do not have dark physics
endif
rem phy update :`commented out as I do not have dark physics
sync
loop
One last thing, you might have noticed on other people's post (including my response to you here) that they have their code in these nice expandable code boxes. You can do the same by:
1: pasting your code into your message (as you have done)
2: highlight the code
3: press the "code" button at the top right of the message window. 4: When you post the message, your code will appear in a box. This just helps to keep the code formatted correctly.
Oh, and welcome to the forums.