hey guys, thanx for all your help!
I've been working on some code (my first code ever in dark Basic) and its pretty basic, can you run it (lol, this is sad, cause i don't have dark at the moment) and tell me what you see. Thats if it workx!
OK, i know im asking alot of you guys, so
(whoops didnt work, ill try agian)
Sync on
Sync Rate 90
Function Bullet(x,y)
Sprite BulletCount,x,y,2
Xdiff# = mousex-x
Ydiff# = mousey-y
radAngle# = atan(Ydiff, Xdiff)
FinalAngle# = radAngle*360/6.2831
BulletNo(BulletCount-1000,2)=FinalAngle
endFunction
Box 0,0,50,50
Get Image 1,0,0,50,50
Cls
Box 0,0,5,5
Get Image 2,0,0,5,5
Cls
y=SCREEN HEIGHT()/2
x=SCREEN WIDTH()/2
sprite 1,x,y,1
BulletCount=1000
dim BulletNo(999,3)
DO
if LEFTKEY()=1 THEN x=x-2
if RIGHTKEY()=1 THEN x=x+2
if SPACEKEY()=1 THEN Bullet(x,y):BulletCount=BulletCount+1
Sprite 1,x,y,1
for Count=1000 to BulletCount-1
BulletNo(Count-1000,1)=BulletNo(Count-1000,1)+((-2)*cos(0.0174532925199433*BulletNo(Count-1000,2)))
BulletNo(Count-1000,0)=BulletNo(Count-1000,0)+((2)*sin(0.0174532925199433*BulletNo(Count-1000,2)))
sprite Count, BulletNo(Count,0) , BulletNo(Count,1),1
next Count
SYNC
Loop
THANX
Drum