Toonheart / Bring-Dino-Back

Maze Solving Game
0 stars 0 forks source link

Improve Lazer toggling #16

Closed Rameshmanne closed 11 years ago

Rameshmanne commented 11 years ago

Currently toggling uses time based technique. Need to improve it... to avoid race condition.

Rameshmanne commented 11 years ago

Came up with new logic using an instance variable(Toggle) which is set,Reset after finishing respective animations. Ref:https://www.scirra.com/tutorials/158/veryvariable-toggle-between-two-states