|
Post by egotrip on Jan 13, 2015 17:58:46 GMT
I am having trouble detecting collisions between two sprites with the same type. It seems to include itself in the check which kind of breaks the functionality. Is there a way around this?
|
|
|
Post by lukebord1 on Jan 20, 2015 13:25:55 GMT
A solution is to assign a global parameter to one of them (so it'll be unique), and detect that variable when occurs a collision, considering that PARAMA/PARAMB/DIRECTION could involve all the sprites of the same type, losing their usefulness.
Example:
IF X > (a value for one of the sprites)
LET O = X (so O is mirrored only to the one which has the X as above)
ENDIF (...)
|
|
|
Post by egotrip on Jan 20, 2015 23:25:12 GMT
Thanks. It's too late now though cos I ran out of variables. But its good to know for next time.
AGD needs more variables as well as events for sprites.
|
|