Thanks for that, it now works how it should. I just deleted the line with
position object 2,etc, now I need to make it more of a game some I thought it would be a good idea to add some more balls(i have used a FOR,NEXT statement). This, however is when i ran into yet another problem. I will try a work out what is wrong, but I will post the code in case someone spots the problem before me.
hide mouse:sync rate 40
rem create matrix and texture it
make matrix 1,10000,10000,20,20
load image "tarmac05.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
randomize matrix 1,50
position matrix 1,-500,-70,-500
rem turn on fog and backdrop
backdrop on:color backdrop rgb(0,0,0)
Fog on:fog color rgb(150,0,0)
rem create and texture player/ball
load image "iron01.bmp",2
make object sphere 1,100
texture object 1,2
set object collision to spheres 1
rem load texture for small balls
Load bitmap "bright01.bmp",3
rem make 20 balls and place them randomly
rem texture balls and set collision
FOR x=2 to 21
Make object sphere x,25
texture object x,3
set object collision to spheres x
position object x, Rnd(10000),35,Rnd(10000)
NEXT x
rem *Main Loop*
sync on:DO
rem Detect collision and delete spheres
If object collision(1,x)=1 then delete object x
rem setup player/ball movement
IF upkey()=1 then pos1#=pos1#+20
IF downkey()=1 then pos1#=pos1#-20
IF leftkey()=1 then pos#=pos#-20
IF rightkey()=1 then pos#=pos#+20
rem position ball and camera
position object 1,pos#,0,pos1#
position camera pos#,150,pos1#-350
sync:Loop
I have also added fog and changed the backdrop color. Does anyone know how I could get a more interesting backdrop? I will check to DB examples section in a minute. Oh yeah, another problem i had with my code was the big sphere didn't seem to texture, but I will have a better look a what I have programmed. I am also still interested in have the spheres explode when you touch them using a particle bomb effect. However I know nothing about particle bombs/effects. Could someone explain how they work.
Thanks Again
Jozers