Hey guys, today when i wake up for some reason this came to my head and then i began seeing how it may work.
Of course it wont be different than the dbSpriteCollision but it will work all the time, some day the dbSpriteCollision was not working for me and stuff.. xD
Ok so this is my idea:
Collision.h (Concept):
include "DarkGDK.h"
// Ok here it will began creating int's for the following details:
int objCollisionID;
int objCollisionX(ID); // I think we can make a void for this
int objCollisionY;
int objCollisionWidth;
int objCollisionHeight;
int objLimitX;
int objLimitY;
// Then it probably needs something that makes objCollisionID using several values but i dont know how to do that .. xD
//Ok then we just need some calculation to know the limits for each Sprite
objLimitX = objCollisionX( ID ) + objCollisionWidth ( ID );
objLimitY = objCollisionY( ID ) + objCollisionHeight ( ID );
// The objLimitX will be the X limit of the Object, but in your program you can make it less for some sprites that you dont remove the limits or the background.
Now the question, can this be 100%?
PS: I think im the first having this idea... or at least the first giving it a try... I didnt copy this from any place.
Please Post what you think
C++ Medium 3.5/5
VB6 Advanced: 4/5
VB.NET Advanced: 4/5