Bungie Ball Help
Hello everyone a few days ago i started a game called Bungie Ball but i currently have a problem. The idea of the game is to change rings from orange to green. The way you do this is by moving the ball over a ring and letting go. This may sound easy but you have to do it in a set number of turns.
Ive got to lvl 6 and introduced rings that change from purple to green when hit if there purple, and change back to purple if you hit again. Ive got it to work but not the way i want it too. Because ive used the hitTest methord even when the ball is still touching the ring it just cycles throw the 2 frames ive got. All i want it to do is change to green if its purple then stop until the balls stopped moving to have the change to change back to green again.
What i was thinking is to unload or bypass the bit of action script that makes it go green once its hit the ring and then reload it the bit of action script if you know what i mean but i have no idea how to do it.
This is the code for it
xTween.onMotionChanged = function() {
if (ballMc.hitTest(ring10)) {
if (ring10._currentframe == 1) {
ring10.gotoAndStop(2);
} else {
ring10.gotoAndStop(1);
}
}
}