I want to understand the code so that i can be a better programmer, thanks any way.ITomi wrote:The 2d collision detection code? It is not requires the understanding, just replace rect1 and rect2 with the names of your actors in your game.
For example spider instead of rect1s and wall instead of rect2s. The x, y, width and height are build in variables in GE too, so you can use these. These variables represents the dimensions of sprites of your game actors.
Users browsing this forum: No registered users and 1 guest