The scenerio: I am trying to make a very simple flight simulator type of animation. When the user presses and holds an arrow key, things move/rotate. The problem: If you alternate moving/rotating things in different directions, the location/rotation of these things becomes skewed. They seem to rotate or move more in one direction than another. For instance, if you play around with the animation for a while, the background is moved or rotated so far in one direction that you can eventually see the edge of the background movieclip. I have tried to tween these things back to the propper location but it just does not look good at all.
I've just learned the basics of programmatic animation in Actionscript 3.0 but I can't seem to think of the right solution for this problem.Here is what I'm trying to do: A ball moves at a certain speed from the left of the screen to the right end. If there's a box in the way, it keeps bumping into it until the box breaks and it continues moving forward.The box will have a set weight that will control how much it slides when it is bumped by the ball. The ball will be pushed back a bit when it bumps the box.I have a very specific idea and all I need is a little help starting. How would you tackle this problem?
Or if there isn't any, does anyone have source code or thoery on how to make a diagonal wall for an object to bounce off of? I have ideas, but I'm not sure if they are as efficient as some other ideas may be.
I'm trying to put together some code that will approximate the arced flight of an arrow.Currently, I've got the code so that the angle of the bow movieclip will move depending upon the position of the mouse.pressing the mousebutton will then fire an arrow at this angle (albeit at a constant speed). I've played around with xmov and ymov in an attempt to introduce inertia and gravity (respectively) and therefore create a more natural flight of the arrow but aren't really getting what I'm after. Added to this, I also need to alter the angle of the arrow clip over the course of it's flight to imitate the charge in orientation (i.e. tarts to point towards the ground in the downward 1/2 of the arc). Code so far is below.
Does anyone have any suggestions? Or even alternatives (such as draw a curve with the curveTo method and then animate the arrow clip along this path?
i wanna ask how do i make a ball bounce off something like a ball bouncing off a bumper in a pinball game? i've tried a lot of times but everytime the ball get stucked to the box and it doesn't move anymore...will be grateful if anyone noes the actionscript of it..
ball collision inside another ball using gravity.I have one large circle in the middle of the stage (its radius is 150 pixels). I have another circle inside of that one (20 pixels radius), this is the smaller ball that I would like to have bounce around inside of the larger one with gravity. When the small ball hits the edge of the larger circle, I would like it bounce inwards to the center of the larger circle. It keeps doing this until it eventually stops in the center of the larger circle at the bottom.
ok lets say you create a button that when held down play an animation of 20 frames if realsed it goes to frame one and stops if held down it plays out this animation. for the topic lets say you have a fire animation and you want the fire to apear and if the user hold its down the animation reaches the end of the time line and loops back and plays the last 5 frames of the animation and as soon as it is let go it goes to and stops at frame one. Well i know how to make a button that when held down plays out an animation. And i know how to say when released goes to and stops at frame one. What i dont know how to do is to loop the fire at the last 5 or 6 frames so the user can hold it down all day long and play out that animation.
I've been reading a lot about the benefits of Object Pooling. Found some "tutorials" online, all above my skill level. Can anyone please show me an extremely simple example of an Object Pool. What my game does is creates Ball objects when the user holds down the mouse, stops when user lifts up mouse. I need to store these Ball objects in an array(or Vector), and hit test them with other objects, removing them from the stage when the hit another object. I'd like to create a pool of say 20 of so, created once, and recycle them.
I'm in a class in which I have to create a web app with animation, etc. The animation part I got after some sweat. I managed to create some buttons with the graphics for the 4 states. When I try to use those button is where I start getting lost. I've reference 3 or 4 books, lynda.com videos, etc. I can follow the code when I see it, but I have no idea what to do. Some seem to set the stop and start in the button, some in a layer with AS3 -
What I have is a background layer with static graphics, another layer with the animation, also static in that the picture changes BOOM each time, no tweening. There's a layer with audio that is lines up with the animation. I can get the audio and animation to play together. I just can't get them both to stop and start when I hit any buttons.
All I want to happen is some text (6 words) animate in from the right hand side and slow to a stop in the centre of the banner. Simple.
The problem im having is the when the text animates on it tends to stutter and appear jerky whereas I need it to be very smooth.
Ive tried animating the text using basic frame tweening with easing and with various high frame rates.Ive tried various coding methods using tweening classes (both the inherit class within flash and imported 3rd party classes) which seem to improve the animation slightly but still with some random jerkiness.[code]...
How can I create animation in sequence? As soon as one motion ends, how can I get a second motion to begin? I would like to make item 1 move and then item 2 move. etc, while item 1 disappears or remains stationary.0
I'm a novice in flash when it comes to actionscript and xml. Let me explain what I have so far and what i want to do with it. I have a basic flash animation, which constists of 12 images horizontally scrolling across the movie stage.It is animated to scroll from right to left at a speed of 1. I would like to update all those images once a month and so I'm looking for a way to do it using xml. Has someone done this before? It will make it a lot easier to update, rather than have to manually swap out pictures in the flash file.
I want to create a simple animation of a game so you can see the playout of a game. It should be an animation in which you just see the game Tic-Tac-Toe played. I have the states of the games in a description. So player 1 marks a cell = state 1; player 2 marks a cell = state 2 etc.. I currently have the game parsed in a ruby program; it will be easy to display just one state (like in the image), but how do I create an animation from it? Is there an easy way to do this? I'm open to solutions in every language but it shouldn't take to much time to implement. I want to show such an animation in a presentation.
I'm trying to create a button with a bit of animation. So far, no matter what I do I can't get this to work. The problem is with Roll Over and Roll Out. if you look at the file I attached there's a glitch when the mouse goes over and out very quickly. (ONLY from the top and bottom, left and right works ok)
I created an animation and I want to color it in. ( I made the drawings by paint brush in Flash). The problem is the thing seems to think that every little line I draw is a seperate item. I've tried breaking it apart but its time consuming
I have a menu made in flash and I have mouse-over animations and whenever I create an invisible button to make a link, the links work, but the mouseover animation disappears. Anyone know how I can create links while retaining the animations?My FLA is located here: here
I am trying to create my first cartoon animation. What I have so far is four swf's, each containing a short animation. What I want to be able to do is load in a swf file into a fla, then after a certain time peroid, remove that swf and load in a new swf.