I'm making a point and click game, and here's some example code I put on one frame:
onEnterFrame = function () {
if (keyvar == 0) {
_root.key._visible = false;
}
};
I've set the variable keyvar to zero in a previous frame, so when you go to the frame with this code, the key should not be visible. When you go to the frame, you can see the key for a split second, and then it's not visible. So the code works, but you can see the key for a very short amount of time before it actually disappears. Raising up the framerate to around 45 fps helps with this a bit, the flicker is so sudden it's hardly noticable, but then it also changes the speed of all the current animations I have in the game. Is there any way to stop this flickering?
Thanks in advance.