Hello there, so ive more or less got a functional collision system for a mario clone that im making, ive searched for a good few hours on the forums with no luck.
Here is what im looking for:
http://forum.thegamecreators.com/?m=forum_view&t=186683&b=1
Van B's answer seems to be what im looking for but i cant seem to understand what he's there with that function.
I use this to figure out if a sprite is above or below another sprite,
if(dbSpriteY(mario)>dbSpriteY(allCollisions[1].Spriteid))dbPrint("mario colliding from UNDER the brick"); //mario is BELOW the brick
if(dbSpriteY(mario)<dbSpriteY(allCollisions[1].Spriteid))dbPrint("mario colliding from ABOVE the brick"); //mario is ABOVE the brick
What i cant seem to do is figure out how to see if the player is on the right or left side of the cube.