hello again! u guys may know me as the newbie of qb64 forums, but honestly, i worked a lot on my game... sort of...
in resume i cant find a good way to collide in objects.
first, i cant go to the qb64 wiki because there's always this message like "bandwidth limit". second, i've found some collision detection methods in a site, but they doesn't fit in my game.
it took me 2 days to finally ask for help from the experienced ones.
here's the code of my sub.
IF (xp
+ sx2
= xb
) AND (xp
= xb
+ r
* 2) AND (yp
+ sy2
= yb
) AND (yp
= yb
+ r
* 2) THEN win
= 1