I’ve got a crash which I think is physics related so I’m trying to check that I’m doing everything correct.
-
In my object collision listener function I set a flag to say that the object has collided and then use that flag to change the objects properties in the main game loop which is based on the enterframe event. Is this OK?
-
in the collision listener function I check the phase of the event but does it matter whether I set the flag in the began or ended phase? At the moment I am using the began phase because if I use the ended phase the collison does not seem to take place as soon as I want.
-
In my collision listener function can I change object properties like alpha without causing problems?
-
If I have two physics objects WALL and BALL. And I detect a collison in the WALL collision listener function. Can I use e.other (which refers to BALL) and safely apply changes to BALL within the WALL collision listener or do I still have to set a flag for BALL and change it’s properties in the main game loop? [import]uid: 51494 topic_id: 25890 reply_id: 325890[/import]