Thank you for your input i think the bounding rectangal collisions
would work well but im am not very skilled at dark basic and wouldent know how to make it work my code might be a little confusing but if you can do somthing with it i would really appreciated it alot. (the code isnt finished and i have some pretty random things in it and player two is not done)I will post it agine when i have every thing done except collsion.
load bitmap "thearmory3.bmp"
set current bitmap 0
load music "start.wav",2
play music 2
loop music 2
load image "lay1.bmp",15
load image "lay2.bmp",16
load image "lay3.bmp",17
load image "lay4.bmp",18
load image "lay5.bmp",19
load image "standing1.bmp",20
load image "chris.bmp",21
load image "fire1.bmp",22
load image "fire2.bmp",23
load image "fire3.bmp",24
sprite 1,300,300,15
do
sprite 4,300,400,i
sprite 1,300,300,15
sprite 2,400,350,20
sprite 3,200,325,21
if keystate(32)=0
sync rate 15
i=i+1
if i<22 or i>24
i = 22
endif
rundir=1
endif
set text size 30
text 250,115,"Play_Game":if mousex()>=250 and mousex()<=325 and mousey()>=115 and mousey()<=115+text height("Play Game")
ink rgb(0,200,0),0:if mouseclick()=1:exit:endif:else:ink rgb(255,0,0),0:endif:sync:loop:cls
sync on
ink rgb(244,214,210),1
hide mouse
set display mode 800,600,32
load bitmap "theportal1.bmp"
set current bitmap 0
load music "Overclocked.mid",1
play music 1
loop music 1
load image "standing1.bmp",1
load image "standing2.bmp",2
load image "standing3.bmp",3
Print "It took me for ever just to this little bit but it coming along"
load image "manrunleft1.bmp",4
load image "manrunleft2.bmp",5
load image "manrunleft3.bmp",6
load image "manrun1.bmp",7
load image "manrun2.bmp",8
load image "manrun3.bmp",9
load image "kic.bmp",11
load image "kic3.bmp",12
load image "kic4.bmp",13
load image "kic5.bmp",14
load image "ready1.bmp",15
load image "ready2.bmp",16
load image "ready3.bmp",17
load image "ready4.bmp",18
load image "ready5.bmp",19
load image "ready6.bmp",20
load image "ready7.bmp",21
load image "19.bmp",77
load image "red.bmp",99
n=1
sprite 1,d,y,i
sprite 2,300,300,77
sprite 3,w,q,o
remstart
sprite 2,100,160,n+16
sprite 3,100,240,n+24
sprite 4,100,320,n+32
sprite 5,160,100,n+40
sprite 6,160,160,n+48
sprite 7,160,240,n+56
sprite 8,160,320,n+64
remend
y=450
rundir=1
w = 400
q=450
o=1
d = 120
i = 1
e=1
g=15
sprite 3,w,q,o
sprite 1,d,y,i
sprite 5,200,450,g
sprite 6,300,450,78
do
hide mouse
sync
sprite 6,300,450,78
if rightkey()=1
sync rate 15
i=i+1
d = d + 15
if i<7 or i>9
i = 7
endif
rundir=1
endif
if keystate(77)=1
sync rate 15
o=o+1
w = w + 15
if o<7 or o>9
o = 7
endif
rundir=1
endif
if keystate(55)=1
sync rate 8
g=g+1
if g<15 or g>21
g = 15
endif
rundir=1
endif
if keystate(75)=1
sync rate 15
o=o+1
w = w - 15
if o<4 or o>6
o = 4
endif
rundir=1
endif
if leftkey()=1
sync rate 15
d=d-15
i=i+1
if i<4 or i>5
i = 4
endif
rundir=2
endif
if keystate(32)=1
sync rate 9
i=i+1
if i<11 or i>14
i = 11
endif
rundir=2
endif
if downkey()=0 and leftkey()=0 and rightkey()=0 and upkey()=0 and keystate(32)=0
sync rate 8
i=i+1
if i<1 or i>3
i = 1
endif
rundir=2
endif
if upkey()=1 then y = -60
if y<450 then y=y+50
if y<201 then y= 200
if downkey()=0 and leftkey()=0 and rightkey()=0 and upkey()=0
n=rundir
endif
if x<2 then x=2
if x>980 then x=980
if y<2 then y=2
if y>720 then y=720
sprite 1,d,y,i
sprite 3,w,q,o
sprite 5,200,450,g
sync
loop