Changes

m
Line 1,184: Line 1,184:  
<source lang="cpp">sprite.CollidesWith(&sprite2);</source>
 
<source lang="cpp">sprite.CollidesWith(&sprite2);</source>
   −
This will test both sprite and sprite2’s locations in terms of their x and y values AS WELL as their x values +width and height values + height. If sprite and sprite2 are colliding
+
This will test both sprite and sprite2’s locations in terms of their x and y values AS WELL as their x values +width and height values + height. If sprite and sprite2 are colliding
 
then the function will return true else it will return false. If your still a little unsure about what will return true and what will return false have a look at this and behold my
 
then the function will return true else it will return false. If your still a little unsure about what will return true and what will return false have a look at this and behold my
 
awesome Paint skills:
 
awesome Paint skills:
8

edits