0 Members and 5 Guests are viewing this topic.
[...]sub(DIE)if Dreturnend[...]Lbl DIEif pxl-test(u-1,v)=11->Dreturn
are you moving from the right? your are pxl-testing the top left hand corner (one spot to the left) so is your sprite tall enough to hit that? or are you smaller then the monster? try pxl-test(U-1,V+7)
can I see a screenie?and did you try my code, minus a subroutine ^^
0→r→d→z→j+43→y+27→x0→w+27→u15→vrepeat getkey(15)if pxl-test(u-1,v+7)=1returnendsub(MMO)if getkey(2) and (pxl-test(x,y+7)≠1)x-1→xif z=02→zelseif z=20→zendelseif getkey(3) and (pxl-test(x+7,v+7)≠1)x+1→xif z=02→zelseif z=20→zendendif getkey(1) and pxl-test(x+5,y+8)3→zelseif getkey(4)0→zendif getkey(54) and (pxl-test(x+2,y+8) or pxl-test(x+6,y+8)15→j1→zendif(j>0)j-1→jy-1→yendif(pxl-test(x+6,y+8) or pxl-test(x+2,y+8)=o and (j=0)0→j0→zy+1→yendif y=49returnendpause 25pt-change (x,y,z*8+pic0p1dispgraphpt-change (x,y,z*8+pic0p1endlbl mmopt-change(u,v,r*8+pic0M1if u≥27 and w=0u+1→uelseif u≤62 and w=1u-1→uendif u=270→welseif u=621→wendpt-change(u,v,r*8+pic-M1return