Sorry for another question
Ok, I know about the flashing screen bug with Dark Basic, and I have put the cls at the top of the program, and tried it in many different areas. The difference here(from the other problems people have been having) is that I use set camera view.
Can you please help
`WHOLE GAME VARIABLES
`(Variables used the whole game and does not change)
Dim AmountLevels(0)
AmountLevels(0) = 1
Dim Amountofwaves(1)
Dim Wave(1,20,4)
Dim Level(0)
Level(0) = 1
Dim MPB(0)
MPB(0) = 49
Dim PlayerBullet(49,4)
Dim Shoot_Status(0)
Shoot_Status(0) = 1
Dim Keypress(0)
`GAME SETUP
set display mode 640,480,16
Sync on
hide mouse
autocam off
sync rate 0
cls
Load_Player
Load_Player_Bullets
Sync on
Set camera view 0,90,640,390
Position camera 0,0,-38
Point camera 0,0,1
sync rate 0
cls 0
`LEVEL VARIABLES
`(Variables that will change, and is only used for the level,
`and will need to be reset at the begining of each level)
`LEVEL SETUP
Load_Background(level(0))
Player_Intro
Do
control_player
Player_Shoot
Move_Player_Bullets
Text 2,100,str$(object position x(1))
Text 2,115,str$(object position y(1))
sync
Loop
Function Load_Background(level)
Load image "media/backgrounds/"+str$(level)+".png",1000
If object exist(1000) = 1 then delete object 1000
Make object plain 1000,64,50
Texture object 1000,1000
endfunction
Function Load_Player()
Load image "media/Player.png",1
Make object plain 1,5,3
Texture object 1,1
Set object 1,1,0,1
endfunction
Function Player_Intro()
Position object 1,-60,0,-1
For x = -60 to -20
Position object 1,x,object position y(1),object position z(1)
sync
sleep 10
Next x
endfunction
Function Control_Player()
If upkey() = 1 and object position y(1) < 21 then position object 1,object position x(1),object position y(1)+0.5,object position z(1)
If downkey() = 1 and object position y(1) > -21 then position object 1,object position x(1),object position y(1)-0.5,object position z(1)
If leftkey() = 1 and object position x(1) > -27 then position object 1,object position x(1)-0.5,object position y(1),object position z(1)
If rightkey() = 1 and object position x(1) < 27 then position object 1,object position x(1)+0.5,object position y(1),object position z(1)
endfunction
Function Player_Shoot()
If controlkey() = 1 and keypress(0) = 0
If shoot_status(0) = 1
For I = 1 to MPB(0)
If PlayerBullet(I,1) = 0
PShoot(I,Object position x(1),object position y(1),0)
goto exitthisfornextloop
endif
Next I
exitthisfornextloop:
endif
keypress(0) = 1
endif
IF controlkey() = 0 then keypress(0) = 0
Endfunction
Function PShoot(Num,Bulletx#,Bullety#,angle)
PlayerBullet(Num,1) = 1
PlayerBullet(Num,2) = Bulletx#
PlayerBullet(Num,3) = Bullety#
PlayerBullet(Num,4) = angle
Endfunction
Function Load_Player_Bullets
Load image "media/Bullet.bmp",1001
For I = 500 to 500+MPB(0)
Make object plain I,1,0.5
Texture object I,1001
next I
Endfunction
Function Move_Player_Bullets()
For I = 1 to MPB(0)
If PlayerBullet(I,1) = 1
If playerBullet(I,2) > 30 then PlayerBullet(I,1) = 0
PlayerBullet(I,2) = PlayerBullet(I,2) + 1
Position object 499+I,PlayerBullet(I,2),PlayerBullet(I,3),-1
zrotate object 499+I,PlayerBullet(I,4)
endif
next I
Endfunction
Take your time, I am in no rush, and this bug does not keep me from continueing on the progect. Sorry for the large amount of topics(I know it isn't really ALOT, but I think it is a little too much. I feel a little guilty

)

Hippopotomonstrosesquippedaliophobia-Fear of long words