From Carl Barton · 1996-04-02 19:51 · #77719 in REXXAMPLE
Yup its me again. This time with somat different. I've started this small game in which you simply fly a ship it a vertical shootem up thing but i haven't got around to scrolling it yet Any way my prob is that when ever I move my bob I get after images of where the bob is changed I've included the code The bobs are 1 is straight 2 is leaning right 3 is leaning left! Cls 0 Screen Open 0,320,256,8,Lowres Hide Curs Off Flash Off Cls 0 Global Z,X,Y Get Bob Palette 'plotting a stary background! For Z=1 To 15 G=Rnd(3) If G=1 Then F=7 If G=2 Then F=8 Ink F X=Rnd(320) Y=Rnd(256) Plot X,Y Next Z Double Buffer _MAIN ' Procedure _MAIN L=10 Z=1 : X=160 : Y=210 Repeat _DRAWBOB '_MOVEBAD these 2 aren't implemnted yet! '_DetColl Until L=0 End Proc ' Procedure _DRAWBOB STATUS=Joy(1) If STATUS=0 or STATUS=16 Then Z=1 If Jup(1) Then Dec Y If Jdown(1) Then Inc Y If Jright(1) Then _RIGHTBOB If Jleft(1) Then _LEFTBOB If X<40 Then Y=40 If X>256 Then Y=256 If Z=0 Then _BOBOFF Bob Z,X,Y,Z End Proc ' Procedure _RIGHTBOB Inc X Z=2 End Proc ' Procedure _LEFTBOB Dec X Z=3 End Proc ' Procedure _BOBOFF Bob Off 2 Bob Off 3 End Proc Thats it! Cya Carl Barton =] F.O.D Internet:Phantom@metnet.demon.co.uk --- Spot 1.3 Unregistered * Origin: -+- Carl Barton On a Brown Cow! -+- (2:442/103.17)