I think this is what you are after.
Show Mouse
Global Boxx#
Global Boxy#
Global Boxz#
input "Enter box size: ";BoxSize
Sync On : Sync Rate 60
Backdrop On : Color Backdrop 0
Boxx# = BoxSize : Boxy# = BoxSize : Boxz# = BoxSize
Make Object Box 1, Boxx#, Boxy#, Boxz#
Color Object 1, RGB(RND(255), RND(255), RND(255))
`Position Object 1, 0, 0, 0
Make Camera 1
Position Camera 1,50, 50, -500
Point Camera 1,0, 0, 0
repeat
sync
until Mouseclick() > 0
end
I don't see why you make another camera, but perhaps you have plans for it. For some reason, when you make the additional camera, the backdrop turns green. I also don't see why you don't just make a cube, since you putting the same value into all three dimensions. I did not see why you are setting up boxx#, etc. as global variables.
Also, you don't need to position a created object at 0,0,0, as this is the default.
So many games to code.......so little time.