I started learning flash through Kongregate's shootorials (http;//kongregate.com/), and I encountered a problem when I tried to make an animation with Pixen (http://opensword.org/Pixen/) because I had no clue how to make one in flash. As a side project, I tried to make the ship boost, i with an accompanying flaming exhaust animation. I made a two image animation of fire, and I saved it as a gif and imported into the stage, changed the properties so that its class and identifier were the same (center registration). I made a class for it, and I put in some code in my ship's class so that whenever I press shift it makes my ship go faster, sets a boolean variable named boost to true, and when i let go, it puts the speed back to normal, and sets boost to false. I have an if statement, that activates a function named boost if my boolean is true, which plays the animation. I set the animation to appear in the center, because I was going to worry about offsetting it to the side of the ship later.
So my problem: Whenever I try to even test it (I'm not pressing shift); it flashes my background and ship (resetting the position of my ship to the center each time) alternately with one of my images from my animation in the top left, the other is in the center of the screen, covering up my ship.
How can I fix this? I can send you some screenshots and the gif file if you post your email.
So my problem: Whenever I try to even test it (I'm not pressing shift); it flashes my background and ship (resetting the position of my ship to the center each time) alternately with one of my images from my animation in the top left, the other is in the center of the screen, covering up my ship.
How can I fix this? I can send you some screenshots and the gif file if you post your email.