Collisions reporting multiple times in Corona -
i building game in corona sdk involves 2 types of collisions 2 different types of objects. there 3 objects total in game, rocket ship, asteroid, , yellow sphere. when asteroid hits rocket ship, lose 1 life. when yellow sphere hits rocket ship, gain point. reason both asteroid , yellow sphere have multiple collisions rocket ship when colliding once. have re-evaluated code multiple times , cannot figure out problem is. please , if need sample code can post some.
collisions have multiple phases. have test phases. collisions begin , end. there should event.phase tells phase in. there pre-collision events too.
Comments
Post a Comment