ActionScript 2.0 :: Make Ball Run In Target Movie?
Mar 18, 2003How do I make the button work, making the ball run in the target movie?
View 1 RepliesHow do I make the button work, making the ball run in the target movie?
View 1 RepliesHow do I make the button work, making the ball run in the target movie?
View 8 Repliesi 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..
View 3 Repliesmake a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.
[Code]...
can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?
I followed the bit101 tutorial on gravity and now have a movie clip called "ball" (instance name) with an embedded invisible button (so you can throw it all over the place).I also have a movie clip called "block1" (instance name too! what a coincidence, isn't life lovely). I want to make them collide, and make the ball bounce away.
View 1 RepliesI have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
I'm trying to make a ball to bounce on something realistic.How can I make it work? It's impossible.
View 3 RepliesSo I am trying to get a ball to move around the screen, and when it gets to the walls of the stage I want it to change directions. So far, I have this code:
Code:
import flash.events.Event;
var ballVelx:Number = Math.random() * 15;
var ballVely:Number = Math.random() * 15;
var ballDirx:Number = 1;
[Code].....
This is not in the main timeline, it is in the symbol timeline for Ball. With this, I have the ball moving around and when it reaches the end of the stage it resets with a random velocity/angle. When I uncomment the ballDirx and ballDiry lines and comment out the this.x = 0 line, the ball doesn't change directions, it just stops moving when it reaches the end of the stage.
I haven't done much actionscript stuff ...and at the moment im trying to make a ball bounce across the stage, but im unsure how to go about doing that.
View 3 RepliesI am in a pinch for time and know very little about Flash and even less about Actionscript, but I need to know how to make a ball fall according to gravity!
Thomas
<a href="mailto:ttorrey@slc.edu">ttorrey@slc.edu</a>
Something in the line of the preloader of [URL]
how to create a magic ball with some moving myst inside.
I am looking into the flash particles, but i could use some more pointers examples and/or tutorials
I'm having problems with my flash game, i am making slimeball and im using the hitTest to make my ball bounce off of the players, but because my players are semi circular when it hits off the back of my player the ball still goes forward when it should bounce off the player in the direction that it came from, if that makes sense
[Code]....
I haven't done much actionscript stuff ...and at the moment im trying to make a ball bounce across the stage, but im unsure how to go about doing that.
View 3 Repliesball 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.
View 1 RepliesI have code that I wrote(myown and tutorials) and I am having some issues. The object is to make the ball walk to the box and pick up the item. When the pick up occurs the item(box) needs to disappear.
mcMain is the character(ball)
mcCoin is the item(square)
Code:
Variables for key downs
var leftKeyDown:Boolean = false; //left key down false
var upKeyDown:Boolean = false; //up key down false
var rightKeyDown:Boolean = false; //right key down false
var downKeyDown:Boolean = false; //down key down false
var mainSpeed:Number = 7; // speed of character
[Code] .....
Im currently doing a flash project at university and my intention is to make a magic 8 ball style animation, but i'm having trouble with coding the answers so they come out randomly.
View 4 RepliesI cant figure out how to make the ball move and bounce around the stage. and i also need help on the paddle that the ball bounces off of. if u could help me out that would be awesome.
View 11 RepliesI am familiar with hit test, but how do you make a ball bounce off a wall with the same angle that it bounced on it with?ex. it hits the wall at 45 degrees, and it bounces off the wall at 45 degrees
View 6 Repliesi want to make flash drag a ball onpress and if its onrelease and if its on the Suquare movieclip it should stop draggin.
my code is like this
dynamic class Ball extends MovieClip
{
function onPress()
{
[code]....
how to make a simple ball follow an oval motion path? Think of a molecule spinning (and looping) around a nucleus. This was five seconds work in previous versions where you could draw the motion guide then simply attach an object to it and say "orient to path" but I can't seem to find how to do it in CS4.
View 3 Repliesi want to make a ball move at a constant speed into a wall and bounce of, initially it should move back but then It should carry on moving towards the wall.
I managed to make it bounce but once it hits the wall it carries on in the opposite direction!
I followed this tutorial to make a bouncing ball in flash. Its AS2 so it took me some time to make it work in AS3 Now I want to make the ball roll down a slope, fall and bounce when it hits the ground. I have attached my .fla.
View 1 Replies//stop on current frame
stop();
//ball follows mouse[code]....
What I am trying to achieve is to make my ball get larger each time it collects a particle (Pixel).
how to make the ball move and bounce around the stage. and i also need help on the paddle that the ball bounces off of.
View 11 Repliesthis is the error Iam getting and my code below, I keep getting an error and can't understand why could someone with a bit more experience 'm at my wits end-TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@2edef11 to flash.events.KeyboardEvent.
var upArrow:Boolean = false;
var downArrow:Boolean = false;
var rightArrow:Boolean = false;
[code].....
I need to build a flash learn game to my students. It is to explain the angles and phisics over the billiard/snooker Table. Something similar to this: [URL] The only thing I can do until now is drag the ball! My doubts are:
- How to make the stick move with the center in the point near the ball;
- How to draw the yellow line;
- How to calculate the corners;
- And in the last, how to move the ball with accelerated motion when press a button.
I am making a breakout type game where you bounce a ball around and it hits & breaks blocks.The issue im having is with handling the ball after a collision is detected.Every frame the ball checks four points on its surface to see if they are colliding with any of the blocks. The problem occurs when the ball starts moving fast. The ball's radius is 7 pixels. If it is moving upwards at higher than7 px/ frame, then the ball might end up half way into one of the blocks.
In that case the ball detects a collision on its top AND on its side (which is bad -- If the ball is travelling upwards it should detect the collision at the top of the ball)how I could fix this so that I can make the ball move fast without sacrificing the accurate detection of collisions??
Is it possible to target a loaded movie within the main timeline and stop sounds in that particular movie only?
View 4 Repliesi want to make flash drag a ball onpress and if its onrelease and if its on the Suquare movieclip it should stop draggin. my code is like this
[Code]...
my intention is to make alot ball endless fade in and fade out by using tween event class , but i got some problem see my code.
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;[code].....
but only 1 ball restart back,other 14 ball just stop at there , try paste on action and try you will see what i mean , how i going to make all ball restart back?