mercredi 29 juin 2016

hitTestObject not working properly AS3

How to make the objects detect each other without having to be so accurate? Currently, the program that I'm working on only allow the items to be matched when it is accurately matched at the upper left edge but i did not use hitTestPoint, I used hitTestObject. Below are my codes.

if (bin1.hitTestObject(item)){ 
        updateShape(item, bin1);

Aucun commentaire:

Enregistrer un commentaire