Excellent!!
Love the editors and the code usage!
Hmmm New Toys!!!!
Love the editors and the code usage!
Hmmm New Toys!!!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuFUNCTION hitobject: xx,yy
FOREACH w IN waters[]
IF BOXCOLL(xx,yy,16,16,w.wx,w.wy,w.width,w.height) THEN RETURN 1
NEXT
ENDFUNCTION
LOADSPRITE "castle1.png", 11
result% = 0
FOR f=1 TO 512 STEP 16
FOR n = 1 TO 800 STEP 16
//FOREACH test IN waters[]
FOR i = 0 TO BOUNDS(waters[],0)-1
// IF BOXCOLL (test.wx, test.wy,test.width,32, n,f,32,32)
IF BOXCOLL (waters[i].wx, waters[i].wy,waters[i].width,32, n,f,32,32)
// TEST SIDE SECTIONS
FOREACH leftside IN waters[]
IF BOXCOLL (leftside.wx, leftside.wy,leftside.width,32, n-32,f-16,32,32)=FALSE AND BOXCOLL (leftside.wx, leftside.wy,leftside.width,32, n+64,f-16,32,32)=FALSE
result = 1
ELSE
result = 0
ENDIF
NEXT
IF result = 1
DRAWSPRITE 11, n, f-16
GOTO scr1
ENDIF
ENDIF
NEXT
NEXT
NEXT