So I just ran a little test in questCarMain.
below createBG();
i added createTester();
What I got was a flickering crystal graphic.
So here's what I'm thinking - your graphics aren't stuttering, they're flickering.
And the reason is... I don't know. Something somewhere in your code is doing something to the graphics?
And just when I thought that was weird, I changed the speed from 5 to 10 and the crystals shrank in size.
Anyway, I do think the problem is somewhere in the timer. "My" crystals flicker like crazy, while "your" crystals that have values for the timer flicker much less.
EDIT: Alright, I just noticed you said removing the timer didn't help. What else has controls over the objects?
below createBG();
i added createTester();
Code:
private function createTester():void{
//addChild(new sky());
sdasda = new crystals();
addChild(sdasda);
sdasda.addEventListener(Event.ENTER_FRAME, enterframe);
}
private function enterframe (e:Event):void {
e.currentTarget.x -= 5;
}
//addChild(new sky());
sdasda = new crystals();
addChild(sdasda);
sdasda.addEventListener(Event.ENTER_FRAME, enterframe);
}
private function enterframe (e:Event):void {
e.currentTarget.x -= 5;
}
What I got was a flickering crystal graphic.
So here's what I'm thinking - your graphics aren't stuttering, they're flickering.
And the reason is... I don't know. Something somewhere in your code is doing something to the graphics?
And just when I thought that was weird, I changed the speed from 5 to 10 and the crystals shrank in size.
Anyway, I do think the problem is somewhere in the timer. "My" crystals flicker like crazy, while "your" crystals that have values for the timer flicker much less.
EDIT: Alright, I just noticed you said removing the timer didn't help. What else has controls over the objects?