how to stop incrementing?
I am creating a car game and I have developed a collision detection engine to tell whether the front or the back of the car has hit a wall or another car.
This is so I can send the car movieclip to a particular frame to display the type of damage it has recieved.
The problem is it all happens in an IF statement and once it has hit any wall the damage variable keeps incrementing because the condition remains true and I only want it to increment once per hit.
I have included the FLA for the game. If my ramblings make no sense.
Basically I want an increment to execute only once even if the conditon remains true.
Any help would be great.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|stop sound||azfused||Flash 8||2||04-02-2009 06:34 PM|
|movie clip stop auto play||tiaka||Newbies||3||07-08-2006 12:23 AM|
|stop / play / stop||digitalecartoon||Newbies||1||08-16-2005 04:41 PM|
|How to stop and play movieclips||cayohueso||Newbies||1||01-12-2005 09:37 AM|
|Play and Stop actions||cub4||Newbies||4||11-09-2001 11:16 PM|