ok, i fixed all of my above problems, the objects flickered alot when i start the game because of how it deletes then recreates (which i htink is a good idea ) so i got rid of the "sync" command right after the delete so they dont flicker like that, the object numbers overlapping eachother is fixed now, so i think im ready to build my game with it, but i want you guys to check it one final time, here u go:
`Ok, heres so you know what all the objects are for:
`1 - the tealish colored cubes are the walls and floors
`2 - the red cylinders are the ladders
`3 - the small yellow spheres are coins
`4 - the small yellow cube is where you have to go (after you
` collect all the coins required for the next level) to win
`5 - this will be a different color of coin that represents a 5 point coin
`6 - this invisible box will be placed wherever the player will start
` Ok here it is:
` i set the graphics mode to 16 bit, my computer wont run 32 bit
set display mode 1024,768,16
hide mouse
autocam off
sync on : sync rate 30
dim level#(10,10)
ladder = 2
wall = 3
coin = 4
victory = 5
do
restore level1
For levely = 1 To 10
For levelx = 1 To 10
Read levelv
level#(levely,levelx) = levelv
If levelv = 1
Inc wall,5
Make Object Cube wall,1
Color Object wall, Rgb(0,160,160)
Position Object wall,levelx,levely ,1
show object wall
Endif
if levelv = 2
inc ladder,5
make object cylinder ladder,1
color object ladder,rgb(255,0,0)
position object ladder,levelx,levely ,1
show object ladder
endif
if levelv = 3
inc coin,5
make object sphere coin,.5
position object coin,levelx,levely ,1
color object coin,rgb(160,240,40)
endif
if levelv = 4
inc victory,5
make object cube victory,.5
color object victory,rgb(255,255,0)
position object victory,levelx,levely,1
endif
if level = 5
`This will be 5 point coins
endif
if level = 6
inc starting,5
make object cube starting,1
position object starting,levelx,levely,1
hide object starting
endif
next x
next y
position camera 5, 5, -10
point camera 5,5,1
sync
for o = 1 to 500
if object exist(o) then delete object o
next o
Loop
level1:
data 1,1,1,1,1,1,1,1,1,1
data 1,4,3,3,3,3,3,0,2,1
data 1,3,0,1,1,1,1,1,2,1
data 1,3,2,0,3,3,3,3,0,1
data 1,3,2,1,1,1,1,3,1,1
data 1,3,0,3,3,3,3,0,2,1
data 1,3,1,1,1,1,0,0,2,1
data 1,3,3,3,3,3,1,1,2,1
data 1,3,0,0,0,0,3,3,0,1
data 1,1,1,1,1,1,1,1,1,1
NukeSoft
http://www.geocities.com/nukesoft0