|
Post by eeyurdakul on May 19, 2015 14:32:08 GMT -8
Hi,
I am designing a platform game where objects are .png format using its transparency feature. Is there a function which outputs when two objects collide (I mean when non-transparent parts of two .png images collide). Could you give me a solution on this?
Thanks
|
|
|
Post by jamesbowman on May 19, 2015 17:43:48 GMT -8
|
|
|
Post by eeyurdakul on May 20, 2015 1:41:00 GMT -8
Hi again,
I follow the "frogger" code that you have mentioned, but I have a couple of questions.
Defining two tags;
GD.Tag(1); GD.AlphaFunc(GREATER, 0); GD.Vertex2ii(x, y, SPRITE01_HANDLE, anim);
GD.Tag(2); GD.AlphaFunc(GREATER, 0); GD.Vertex2ii(x, y, SPRITE02_HANDLE, anim);
GD.wr(REG_TAG_X, frogx - 8); GD.wr(REG_TAG_Y, frogy);
then I couldn't get how to compare these two tags.
Could you write a basic example code, it would be great ?
Thanks
|
|