Circular Motion
I've looked through a few circular motion files and they are a little too complex for me to understand what's going on with the math. I'm hoping someone can post a .fla with just a single movieClip moving in a continuous circular motion - no frills, just totally stripped down. I want to be able to get my head around the math so I can start to customize and experiment with it on my own.
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-14-2005, 04:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Circular Motion 2
I am currently trying to develop a simple game. But I am having problems with the motion of a MC. I need a random circular motion, with loops and stuff, which the coordinates can be set and retreived for interactivity. The maths is a bit of a problem coz the coordinates jump when changing the circular function. Anyway of fixing this or any ideas on how it can be done?
THANKS
Circular Motion
I want to move something in a circular path using actionscript. Can anyone help?
Circular Motion
Could not find anything about the subject but how can you make an object move in a circular fashion around another object or on it's own?
thx
Satsu
Circular Motion
Oh mighty ones,
anyone with a tip on how to script a circular motion in a fairly high amount of steps? I'm trying to imitate a certain fly i observed, that flew in circles randomly (and at different points in the full-circle) shifting from cw to ccw. ****ed-up little bug, I know, but kinda cute for a
preloader. Maybe I'm fooling myself that this is too hard.
Circular Motion
Hi Guys,
I know you can make a clip rotate around its center with:
Code:
this._rotation+=5;
But I don't want it to rotate around its center, I just enter it to move rotation around a place thats far from its center. Any suggestions?
Circular Motion
'Allo folks,
Urm.. can someone explain the logic of circular motion (them radians and degrees). I've found the code for it and modified it a bit to make it do what I want.
But I haven't a clue as to how it works..
This is a slightly modified code taken from the Kirupa Tutorial.
xcenter = 0;
ycenter =0;
onClipEvent (enterFrame) {
degree += 22.5;
radian = (degree/180)*Math.PI;
this._x = xcenter+Math.cos(radian)*100;
this._y = ycenter-Math.sin(radian)*100;
}
The above code will change the position of the movieClip at every 22.5 degrees (thereby making sixteen distinct stops) and will trace a circle of radius 100 px.
Can anyone explain the trigo. concept behind the math equations? (I tried, I tell you... I really tried).
Thank ye..
/gopaldass/
Circular Motion?
Hi,
I have noticed that there is a circular motion swf at the top of the page when you select MX2004 tutorials, I was wondering if there was a tutorial for that? I think I have seen it before but I cannot find it now?
Circular Motion
'Allo folks,
Urm.. can someone explain the logic of circular motion (them radians and degrees). I've found the code for it and modified it a bit to make it do what I want.
But I haven't a clue as to how it works..
This is a slightly modified code taken from the Kirupa Tutorial.
xcenter = 0;
ycenter =0;
onClipEvent (enterFrame) {
degree += 22.5;
radian = (degree/180)*Math.PI;
this._x = xcenter+Math.cos(radian)*100;
this._y = ycenter-Math.sin(radian)*100;
}
The above code will change the position of the movieClip at every 22.5 degrees (thereby making sixteen distinct stops) and will trace a circle of radius 100 px.
Can anyone explain the trigo. concept behind the math equations? (I tried, I tell you... I really tried).
Thank ye..
/gopaldass/
Circular Motion?
Hi,
I have noticed that there is a circular motion swf at the top of the page when you select MX2004 tutorials, I was wondering if there was a tutorial for that? I think I have seen it before but I cannot find it now?
Circular Motion
Ok, I know I'm going to sound like a tard when i ask this but... How do I move an object in a circular motion with action script?
Circular Motion Using Actionscript
Hi there.
Well, I tried to follow the various threads on FK about using AS and trig functions to generate circular motion but I clearly don't seem to get it as my object has failed to orbit. I'm hoping someone out there can point me in the right direction.
I had thought I could use the equation
object._x=radius*Math.cos(t);
object._y=radius*Math.sin(t);
and run a loop to increase my t value to 2pi but it didn't work.
Any advice would be greatly appreciated.
Scripting Circular Motion
Hi, I am trying to script a dot moving in a circle.
similar to
themovieclip._x+=1;
I want it to move round and round in a circle...
Can anyone help?
M@
Circular Random Motion
Hello, I'm currently working on building a website
using flash. I wanted to make it more
interactive, so I decided to use actionscripting.
When I was surfing a net for ideas, I found one site
that I think will give me a good idea of what to do.
http://members.shaw.ca/kanda1272/hima.swf
if anyone knows the way to make this kind of random circular motions
of the ball in the loading scene, please tell me
Circular Motion Problem
I want to create a simple animation where a dot moves around in a circle.
I have used a circle for the dot's motion guide.
The problem is that the dot's start & end points are exactly the same, so unless I create keyframes for the dot at 1 third, 2 thirds & 3 thirds around the circle the dot doesn't move at all. I don't want to do the thirds method as unless I get it perfect the dot won't move smoothly.
thanks
Circular Motion Masks
hey, i've tried and tried.
how the heck can i get a mask that moves in a circle.
for instance lets say i wanted to make a load meter. but instead of just revealing a load bar from left to right.
i want it to reveal in a circle, clockwise or counter-clockwise.
help please.....PLEEEEEEAAAAASSSEEE!
Random Circular Motion
Does anybody have any random code I can slap on a movieclip that will look like a bird (seagull) moving in the distance? I tried tweening it it but it just looks too repititive and boring.
I'm looking for something that moves kinda in a circular motion.
Circular Motion Question - Please Help
I'm using the following AS inside an EnterFrame event to move a movie clip in a circle...
ball_mc.x = centerX - Math.cos(angle) * radius;
ball_mc.y = centerY - Math.sin(angle) * radius;
angle -= speed;
The equation works, but at the start, it jumps from it's position on stage to a point on the imaginary circle on which it travels.
When a user uses the left arrow key to move in the opposite direction, it has the same result -- which completely eliminates the illusion of continuance and ruins the whole effect.
Any suggestions?
Circular Motion Question
I'm using the following AS inside an EnterFrame event to move a movie clip in a circle...
ball_mc.x = centerX - Math.cos(angle) * radius;
ball_mc.y = centerY - Math.sin(angle) * radius;
angle -= speed;
The equation works, but at the start, it jumps from it's position on stage to a point on the imaginary circle on which it travels.
When a user uses the left arrow key to move in the opposite direction, it has the same result -- which completely eliminates the illusion of continuance and ruins the whole effect.
Any suggestions?
Drag In Circular Motion
does any one know how to make something like the hand of a clock face draged in circular motion :
I tried
onClipEvent (enterFrame){
this._rotation += this._xmouse ;
}
and the hand goes all crazy when i move the mouse exept when i touch it
and what i want is to be able to drag it to a number of the clock face .
Circular Motion Issue
Hello again,
I thought I was close to the finish but then a huge problem showed up. I created a thumbnail gallery with thumbnails that circle around the center of the main image (kinda like "the Fan") Anyway, to do the circular motion my main timeline has 2 frames - on the second frame I have an action to gotoAndPlay(1);
This makes my circular motion possible - but not my xml load of images.
on frame one my actions layer for the rotation has this code:
Code:
theta = 2;
myRotation = circle._rotation;
// do the rotations
if(_root.mc_ccw.hitTest(_root._xmouse, _root._ymouse, true)){
//
t += theta*2;
circle._rotation = 180-(myRotation + t);
} else if (_root.mc_cw.hitTest(_root._xmouse, _root._ymouse, true)) {
//
t = theta;
circle._rotation = myRotation + t;
}
same with frame 2.
I tried putting my load xml code on both frame one and frame 2 but that didn't work
can anyone help??
Circular Motion With Easing
Hi, I am Omar
I want to make a movie clip which can move 360 rotation without animation. I don't want to rotate it about own's axis. It will move around a circular path with easing on mouse down. Please Reply me.
How To Chase An Object With Circular Motion?
Hi!
I have an object which follows the cursor (the player).
Then there is a "bad" object which the player is supposed to avoid touching.
I don't want the bad object to head straight for the player, because it would be too difficult to avoid. I would like to have a minimum turning radius for the bad object (kind of circular motion, with a certain radius). How to do this in a way that takes into account the moving direction of the bad object?
This was tried before posting:
I use the position of the bad object in previous frame to determine the direction of movement. By using that I have managed to write a code which "knows" when to turn the bad object clockwise and when counterclockwise. The problem is the circular motion. I can't use the mathematical formula for circular motion, because I would need to know the center point of the circle. I wrote a code which calculates points on both sides (relative to moving direction) of the bad object. The code works nicely, but when I try to use that point as a center for the turning, nothing happens. I think this approach might be too processor intensive even if I manage to get it working.
I would really appreciate your help!
thank you in advance..
Smooth Circular Motion/movement
Hello guys,
how can I make a circular movement of an object around a point ?
I.E: a word around a dot ? I know I need to use some math funcs. but I cant manage to do it. Also I want it to move smoothly, like floating in water, like elastic. I hope u understand.
Thanks.
Drag Movie And Circular Motion
It is possible that when i drag a movieClip to go only in a circular motion .
The thing is that i need to make a rotation button:
the button in in right corner of a square .i need that when i drag the button , the square to rotate in that direction with that angle
I had tried many thing bunt i didnt manage to solve this problem.
I think that : if make the button to move only on the imaginary circle around the square it would be easy to calculate rotation.But the circle movement is a problem too.
Any Help??
Thanks
Cosmin
Smooth Circular Motion/movement
Hello guys,
how can I make a circular movement of an object around a point ?
I.E: a word around a dot ? I know I need to use some math funcs. but I cant manage to do it. Also I want it to move smoothly, like floating in water, like elastic. I hope u understand.
Thanks.
Revealing Graphic In A Circular Motion
kay.. I cant upload anything here so I'll try my best to explain this.
Imagine a circle. That would be the graphic. In the start nothing of the circle is shown.
The circle is revealed "in a circular motion" starting from the top of the circle moving to angle 90, 180, 270 and finally ending it and showing all of the circle at 360.
I cant for my life seem to figure out how to do it. I mean, making a clip rotate in that fashion is easy enough like..
Code:
this.onEnterFrame = function() {
angle += 0.2;
ball._x = originx + Math.cos(angle)*radius;
ball._y = originy + Math.sin(angle)*radius;
}
But making a mask "reveal" an underlying graphic in that fashion just doesnt seem to click with me.
Any ideas?
thanks :E
How To Make A Circular Motion By Using Action Script ?
Hello everyone,
There is a simple question but a bit confusing one for me.
I want to make a circular motion of any round or arbitrary shaped object by using action script. Should i use a for loop, and if i use it what will be the syntax of it?
Animate A Circle That Is Filled In A Circular Motion.
Hi,
Im trying to find out how to animate a circle that is filled in a rotational motion.
Think of a clock and as the minute hand moves around the clock it gets filled behind the hand. And when a complete minute has gone by the whole circle is filled. (See the attached picture).
I've been trying to tween a mask but without success so I was wondering if anyone knew of a way to do it programaticly?
Controlling An Object With A Slider In A Circular Motion
sup guys.
hav a qn over here..
here's a link for the interactive model..but does anyone knws hw 2 do something like tt?
-> http://contact.tm.agilent.com/Agile...atch_popup.html
i need to knw hw 2 create a slider bar to control an object in a circular movement..help needed thanks a lot
Help Needed To 'reveal' Image, Circular Motion
Hi I am basically trying to recreate something like:
http://www.waitrosejobs.com/
as this flash files begins, the image spills out from the top right, goes around the corner and then finishes at the right bottom. how can i make my image reveal like this? I have Flash 8.
Any help would be appreciated!
Many Thanks
Drag Dial (ie Drag Point In A Circular Motion)
I want to incorporate a dial (such as volume dial on a TV, or a timer dial on a microwave) so that when the user clicks on the dial they can move the dial up and down, but in a circular motion.
Does anyone know where I can get a tutorial/movie that would help me with that?
Does that even make sense?!
Is It Possible? Motion Guide + Motion Tween + Actionscript Api Drawing
Hi
Im looking for some help I've done a lot of research and spent hours trying to find a way to do this so any input is appreciated.
I have drawn a shape in actionscript
_root.createEmptyMovieClip("myMoon",6);
with (myMoon){
beginFill(0x999999, 100);
drawCircle(50,120,30);
endFill();
}
new Tween(myMoon, "_x", Elastic.easeOut, 0, 300, 3, true);
Basically I have a tween on it that works fine but what I need to do is motion tween along a motion guide.
Of course I know how to achieve this through the normal way of drawing a circle through the tools box but I have to figure a way out to do this to the shape drawn in action script via the drawing api. How can I do this?
I presume I have to someway make this shape appear in my library as a symbol possibly? Hope someone has a soloution thanks a lot
No More Choppy Motion I Want To Learn Motion Using Actionscript
Hi, my experience is with motion tweens from point A to point B, clean and simple but notice the animation is VERY choppy on slower computers... I want to learn how to alpha, move from point a to point b with actionscript rather than simple motion tweens so the animation is SMOOTHER.... any resources I should check out? Books? Tut's to search for (I haven't had much luck searching).
Here's a sample of my Flash work using simple motion tweening:
http://www.workplaceinnovationsllc.com/flash.htm
Works great on a powerful computer but not on older slower machines..... you'll see where better scripting could make this site better, smoother.
Thanks!
Help!
Shape & Motion Tweens With Motion Guide? Can It Be Done?
Hello everyone
I am currently trying to make a line shorten gradually as it moves.
In other words I want to combine a shape and motion tween, using a motion guide to direct it.
Could someone supply an explanation for how to do so??
Thanks
Script Motion Vs Tween Motion Question
I have asked for help before on scripting that slows down text or smooths it out, etc.
My question is this.. (and i havent experimented yet so..)
If you were to use script to cause alpha changes and motion changes, as opposed to tweening everything, would it make the flash file move much smoother, especially if you had alot going on at one time???
It also should make the file quite abit smaller too correct?
Thanks
Circular Xml
Hi,
I have a function which duplicates 30 mc and attaches them in a circle:
function generateCircle (objects,distance){
for(var i = 0; i < 360; i += 360/objects) {
var currentRadial:MovieClip = loader.attachMovie("radialClip","radialClip"+i,loa der.getNextHighestDepth())
//currentRadial.empty.loadMovie(file)
currentRadial._rotation = i
currentRadial._x = Math.cos(i/57.2)*distance
currentRadial._y = Math.sin(i/57.2)*distance
currentRadial.mcTextColor.text = currentRadial._name
}
}
generateCircle (30,30)
I'd like to load an swf into each mc in the circle using xml.
This is the xml i'm using:
<?xml version="1.0" encoding="iso-8859-1"?>
<image>
<image title="one" file="one.swf"></image>
<image title="two" file="two.swf"></image>
<image>
Does anyone know how i'd achieve this?
Circular
Ok, I'm new with Flash... Infact I only started a few tutorials yesterday.
I noticed in one of the Motion tutorials, it used 3 random a SWF files, one of them was called Circular. Is there a tutorial that show me how to make one like that circular one?
Any help would be greatful.
Circular
Ok, I'm new with Flash... Infact I only started a few tutorials yesterday.
I noticed in one of the Motion tutorials, it used 3 random a SWF files, one of them was called Circular. Is there a tutorial that show me how to make one like that circular one?
Any help would be greatful.
A Circular Timer
Hi, I need to create a circular timer, which fills 100% in 20 minutes. It will be just a circle, and it will go clockwise with a red filling, working its way around until it is filled.
I don't even know where to begin for this, let alone a formula.
Any input is appreciated
Circular Movement
How can I create a 3d circular movement? I mean like look at the preloader on the http://www.tombraidermovie.com. How is that done? I was thinking, whenever I create movement, I make it bounce back using a negative operator, but I don't understand how they simulated this at all. Can anyone help out?
Riki
Circular Drag
hi everybody,
how can i apply circular drag on a button which control a sound volume.
thank you in advance
Can I Circular Space
What I am trying to achieve is the teeth of a gear. I need to be able to take a sqaure, and evenly space instances of it around a circle's edge so to create the look of teeth. Is there a simple script that will lock it to the border of the circle? Any help would be greatly appreciated.
Just an example. As you can see, the teeth are not evenly spaced. http://www.dmstudios.net/~DNS/teeth.swf
Circular Scrollbar
I have been looking at different scrollbars but all seem to be a vertical line. I was wondering if i could get one that follows a path around a circle while having the same effect as a regular scrollbar. Any advice would be greatly appreciated.
Thanks
Circular Preloader
i can easily make a bar preloader but i was wondering how to do a circular one, where it goes around in a circular motion instead of straight from left to right (hope that made sense). basically so that 25% looks something like this 50% and 100%
the reason im asking is b/c im making a digital mp3 player to see if i can make it and each song will be preloaded as a cd, then you drag the cd over to the mp3 player to play it. hope someone knows how to do this.
Circular Drag
Hi everybody,
could someone help me to find a tutorial or explain me how to get a circular drag? Let's say I have a kind of camera focus, and using the mouse drag I wanna turn an arrow in a range almost of 250 degrees.
Any help?
thanks
Circular Nav With Distance...
Im looking for some tutorials on how to animate text so it looks like its coming from the background in a circular fashion like HBO's six feet under site used to look... sorry, its hard to explain it...
it looks almost 3d... with the opacity lowered when its smaller so it looks far away... any help to a tutorial would be appreciated!!
Eric
Circular Text
I know how to make the whole text box go in a circle, but is there a way to make the text fit around the circle?
thanks...
|