Irgendwie vermisse ich
If ..
else if ..
endif
Habe ich was übersehen oder gibts das nicht ?
If ..
else if ..
endif
Habe ich was übersehen oder gibts das nicht ?
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 MenuSETSCREEN 640, 480, FALSE
SYSTEMPOINTER TRUE
a=1; LOADSPRITE "c:/test.png", a
WHILE MOUSEAXIS(5) = FALSE
SPRITE a, 300, 200
SPRITE a, 360, 240
coll=0
Colzeit =GETTIMERALL()
WHILE GETTIMERALL()- Colzeit < 1000
IF SPRCOLL (a, 300, 200, a, 360, 240)
coll=coll+1
ENDIF
WEND
PRINT "Kollisionen\Sek.: " + coll, 0, 450
SHOWSCREEN
IF MOUSEAXIS(5) = TRUE THEN Stop=TRUE
WEND
END
Checkt bei mir +- 407.000/Sek. in GlBasicGraphics 600,480,0
a:timage =LoadImage ("c:/test.png")
Repeat
DrawImage a, 300,200
DrawImage a, 360, 240
coll=0
Colzeit = MilliSecs()
While MilliSecs() - Colzeit < 1000
If ImagesCollide(a,300,200,0,a, 360, 240,0)
coll=coll+1
EndIf
Wend
DrawText "Kollisionen\Sek.: " + coll, 10,400
Flip; Cls
Until MouseHit(3)
Checkt bei mir +- 5.600/Sek. in BlitzMax