In my event sheet I have 2 clickable objects. Sprite A and Sprite B
When you click on one of them spriteC starts moving up the screen an ajax call is triggered and a global variable called isMoving gets set to 1.
When the ajax call is completed the sprite changes direction until it gets back to its start position. At this point isMoving gets set back to 0.
The movement action is the same when both spriteA or spriteB are clicked but the ajax call is different.
My problem is that when I click sprite A and trigger spriteC's movement and ajax callA I can still click on spriteB which triggers spriteC's movement and ajax callB.
I would like to make sure that:
While isMoving == 1
SpriteA and SpriteB are not Clickable
Any pointers would be appreciated.