when i run this code:
sync on
ink rgb(244,214,210),1
cbp=525
fx=300
fy=400
load music "sound/main.mid",1
loop music 1
load bitmap "logo.bmp",3
set current bitmap 3
get image 3,0,0,375,400
sprite 3,125,20,3
wait 10000
delete sprite 3
do
load bitmap "titlescreen.bmp",4
set current bitmap 4
get image 4,0,0,475,500
sprite 4,50,0,4
if spacekey()=1 then goto game
loop
game:
delete sprite 4
do
cbp=cbp-10
if cbp<0 then cbp=525
if upkey()=1 then fy=fy-20
if downkey()=1 then fy=fy+20
if leftkey()=1 then fx=fx-20
if rightkey()=1 then fx=fx+20
if fx>cbp and fx<(cbp+60) and fy>330 and fy<375
goto end
endif
load bitmap "pics/frog/frogup.bmp",1
load bitmap "pics/bground/street.bmp",2
set current bitmap 2
get image 2,0,0,800,450
sprite 2,-100,0,2
set current bitmap 1
get image 1,0,0,58,63
sprite 1,fx,fy,1
load bitmap "pics/cars/cblue.bmp",5
set current bitmap 5
get image 5,0,0,60,45
sprite 5,cbp,330,5
sync
cls
loop
end:
delete sprite 1
delete sprite 2
delete sprite 5
do
load bitmap "end.bmp"
loop
when i wak into the car, it does not collide. i think it is only colliding when it contacts the top left of the frog. if there is some command i need to use or some thing please let me know as soon as possible.
gillypie.
(db classic)
I like playing games and i'm addicted but i suppose its better than fagssssssssssssssssssssss.!! boogy