How To Make A Circle Spin Smoothly?
I have Flash MX and I can't seem to get a circle to spin/rotate smoothly, it sort of jerks around. How do I get it to spin/rotate smoothly? Please explain step by step and in detail. Thanks. Greg
If you want to know what I mean I attached a zip file with the fla inside it. So you can see what I need help with.
DevShed > Flash Help
Posted on: July 11th, 2004, 04:35 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Make A Circle Spin Smoothly?
I have Flash MX and I can't seem to get a circle to spin/rotate smoothly, it sort of jerks around. How do I get it to spin/rotate smoothly? Please explain step by step and in detail. Thanks. Greg
If you want to know what I mean I attached a zip file with the fla inside it. So you can see what I need help with.
Spin Circle By Mouse
Bit hard to explain, but il try if u give me abit of ur time.
Basically i want to be able to spin a circle around when the cursor moves.
Get me...prob not!
For example, if u move the cursor to a certain point, the arrow type object attached to the circle will turn and stop at the point where u stopped the cursor.
The following is the link to an Image of what I want.
http://www.d.thackwell.btinternet.co...l/examples.jpg
In my example image, the blue dial thingy should point to wherever the cursor is.
Thanx
Spin Circle By Mouse
Bit hard to explain, but il try if u give me abit of ur time.
Basically i want to be able to spin a circle around when the cursor moves.
Get me...prob not!
For example, if u move the cursor to a certain point, the arrow type object attached to the circle will turn and stop at the point where u stopped the cursor.
The following is the link to an Image of what I want.
http://www.d.thackwell.btinternet.c...ll/examples.jpg
In my example image, the blue dial thingy should point to wherever the cursor is.
Thanx
How To Spin A Circle On It's Axis?
I've seen this done before and I still can't figure out how to do it.
It's a circle standing still spinning on it's own center axis.
Preloaders sometimes show it.
I've seen the circular movement tutorial here on kirupa, and that isn't it.
Like this game does...
Sorry for the crappy example, and site! I'm sure there are much better ones out there.
How Do I Get A Oval Circle To Spin Straight?
Hey there!
The idea is to make a wheel spin. It could be an easy task but the wheel is from a certain angle. And that makes it all so hard. At least for me.. I just want the wheel to spin straight and still stay in a oval form.
How do I solve this ? anyone? AAHhhHh HELP!?
Thanks in advance
Peace
Making 12 Stars Spin In A Circle
Hi all,
I was wondering if anyone could tell me how I could make 12 stars spin in a circle in Flash? Its my intro scene for an application! Currently I have the stars appearing from off scene to arrive into the scene and become a circle in a simple motion tween.
What I wanted to do then was to have the stars spinning in a circle until a button was pushed to bring them to another screen!!
Any ideas??
Any help would be greatly appreciated, tanx a mil in advance!
Regards,
Derm
How To Make It Spin?
Hello i'm new with flash and i have drawing that i would like to make it spin how can i explain this ok like a ufo i guess thats as clear as i can get anyone now how i can do this . i gues you have to use motion tweening in a movie but i would like to have more info on this thank you
Can I Make My Grafic Spin
Hello i'm new with flash and i have drawing of a coffee cup with a logo that i would like to make it spin round and round can someone help me please what is the best way to go about geting this effect
How To Make An 3d Object Spin
does anyone no how to make a 3d object spin? does this involve action script?
do you know what i mean?
its like starting on one sde of the car and going over the bonnet and back to the other side!
Make My Rectangles Spin
So.. I was trying some stuff..
making some shapes using actionscript..
But i can't get them to move!
Code:
this.onLoad = function () {
foo = 0;
i = 0;
invoerbreedte = 88;
invoerhoogte = 11;
}
this.onEnterFrame = function () {
deX = Math.floor(Math.random() * (Stage.width - 0 + 1)) + 0;
deY = Math.floor(Math.random() * (Stage.height - 0 + 1)) + 0;
breedte = Math.floor(Math.random() * (invoerbreedte - 0 + 1)) + 0;
hoogte = Math.floor(Math.random() * (invoerhoogte - 0 + 1)) + 0;
deAlfa = Math.floor(Math.random() * (65 + 1));
if (foo<11) {
deKleur = "0x0099FF";
} else if (foo>10&&foo<21) {
deKleur = "0xFF9900";
} else if (foo>20&&foo<31) {
deKleur = "0xFFFFFF";
} else {
foo=0;
}
this.createEmptyMovieClip("square_mc"+foo, i);
["square_mc"+foo]beginFill(deKleur,deAlfa);
["square_mc"+foo]moveTo(deX, deY);
["square_mc"+foo]lineTo(deX+breedte, deY);
["square_mc"+foo]lineTo(deX+breedte, deY+hoogte);
["square_mc"+foo]lineTo(deX, deY+hoogte);
["square_mc"+foo]lineTo(deX, deY);
["square_mc"+foo]endFill();
// TRYING TO MAKE THEM TURN:
["square_mc"+foo]onEnterFrame = function() {
this._rotation += 5;
}
foo++;
i++;
}
Can anyone tell me why my rectangles are not spinning 'round and 'round?
Thanks.
How To Make A Wheel Spin
i am new to flash and i wanan know how to make a wheel spin on a car
if n e one could help plz do i'll attach a file that u can do it too
How To Make A 3D Letter Spin?
I have a question: How to make a 3D letter spin in FLash? Do I need some 3D software like 3D studio max to create the letter? And how do I make the letter rotate 360 degrees like the one at www.x-pressive.com. Can someone help? Thanks!
How To Make A Wheel Spin
i am new to flash and i wanan know how to make a wheel spin on a car
if n e one could help plz do i'll attach a file that u can do it too
How To Make A MC Move Smoothly ?
This is my problem...
I have a Movie Clip with instance name fullimage, containing 7 images.
I also have 7 buttons with the thumbnail of each image.
I managed to move the MC and see the desired image (when pressing a button), using the _x property.
I can't make the MC to move smoothly from one position to the other.
I've tried this._x = this._x + 1; or -1; within a loop, but every time i press a button
i get an error message that the script made the MC slowly etc.
Can anyone suggest a solution please?
How Do I Make My Animation Run Smoothly?
Hi guys,
I am making an animation where a movie clip moves from one side of the main movie to the other while scaling up. It flashes to different colours as it does this. But when i preview my movie in html or flash, the movie pauses alot during this sequence.
Is there any way to prevent this, and will this be how it will be when it is published proper?
How Do I Make Things Move Smoothly And Gracefully?
I want to do a slideshow kind of thing where images (and text) move in quickly, smoothly, and gracefully. A great example would be from this site:
http://www.oppenoffice.com/
That's exactly what I mean, with the way the images move in. Setting up keyframes and doing a usual motion tween (even at a high frame rate) just doesn't do it.
Thoughts? Help is much appreciated!
How To Make A Wheel Spin Around 360 Degrees Seamless Motion?
jan 7 2004
how to make a wheel spin 360 degrees in a seamless motion?
my purpose is to give realism to a car wheel which will spin in a seamless motion;
I´ve tried to to it with tweening but the wheel mc jerks at every rotation;
a couple of years ago I saw a very simple code which did exactly this , to make
a wheel spin around smoothly;
would you please suggest me how to do it ?
cheers[b]
How Do You Make A Clip Move More Smoothly Without Increasing The Frame Rate Please?
Hello,
I have been developing this piece of code with the help of people in the forum and what I have so far is below. It makes a clip move around the screen in the opposite direction to the mouse.
It all works fine, but when the clip moves, it is jerky. Is there any way to make it move more smoothly without increasing the framerate? Increasing the framerate does not do anything on older computers with slower processers.
Can the code be altered at all to make the clip move more smoothly?
Many thanks
James
onClipEvent(Load){
//where 550 X 400 is your movie size
M_halfwidth= 550/2
M_halfheight= 400 /2
}
onClipEvent (enterFrame) {
//this will always move the peice relevant to the centre
//as it tracks every frame not just when mouse moves= no delay
_y = M_halfheight+(M_halfheight-_root._ymouse);
_x = M_halfwidth+(M_halfwidth-_root._xmouse);
//then you need to check if you have moved 2 far
//check _x at minimum and max
if (_x<=0){
_x=0;
}else if (_x>=M_halfwidth*2){
_x=M_halfwidth*2;
}
// do the same for _y
if (_y<=0){
_y=0;
}else if (_y>=M_halfheight*2){
_y=M_halfheight*2;
}
}
How Can I Make A Clip Move More Smoothly Without Increasing The Frame Rate Please?
Hello,
I have the following code which makes a clip move around the movie in the opposite direction to the mouse cursor. It works fine, but the clip moves in a jerky fashion. How can I make it move more smoothly without increasing the frame rate?
Increasing the frame rate won't do anything on older computers.
Many thanks
James
onClipEvent(Load){
//where 550 X 400 is your movie size
M_halfwidth= 550/2
M_halfheight= 400 /2
}
onClipEvent (enterFrame) {
//this will always move the piece relevant to the centre
//as it tracks every frame not just when mouse moves= no delay
_y = M_halfheight+(M_halfheight-_root._ymouse);
_x = M_halfwidth+(M_halfwidth-_root._xmouse);
//then you need to check if you have moved 2 far
//check _x at minimum and max
if (_x<=0){
_x=0;
}else if (_x>=M_halfwidth*2){
_x=M_halfwidth*2;
}
// do the same for _y
if (_y<=0){
_y=0;
}else if (_y>=M_halfheight*2){
_y=M_halfheight*2;
}
}
How Do You Make A Boundry For A Circle?
I have a ball that gets duplicated when you press a button, the ball acts with gravity so it bounces and whatnot but when the balls hit they just go through eachother, I want them to have boundrys so when they touch sit on eachother or bounce off whatever my gravity allows it to do. I'm gonna do some experimenting but if you could help thatd be great.
I'm using Flash 8 as well
How To Make A Color Circle?
1. How can I make a color cirkle on a transparent symbol in falsh 4.
2. Is it possible to do it on selected colors/ color sets? How?
Cheers, ebz
How Do I Do I Make Circle And Fill
Hello
I want do draw a circle on ballons and detecting there presence inside the
circle.
just like this http://www.flashgames247.com/play/823.html
How do I do that.
Please help.
(SO Stupid ) How To Make A Circle Looks Like It's Drawn.
(SO stupid !!!) How to make a circle looks like it's drawn.
Sorry, I have this block.
I want to make a circle which is drawn on the stage. So you start at one point then go round clockwise and make a circle beeing drawn.
No interactivity, no nothing.
HELP
Make Text Scroll In A Circle
how do you do this? Anyone know of a thread i can check out that explains how to use a circle as a guide for text to follow.
Here's what i'm trying to accomplish. I'd like to create a simple looking interface over a jpg.
to better illustrate this here's a link of what the interface would look like:
http://ianleelucero.com/sampleflash/followthecup.jpg
so according to the picture the text would come out in a switch blade kind of fashion.
sound simple enough? i will keep trying on my part to make this work. and thanks for any responses.
ian
Any Easy Way To Make A Circle Wipe?
I would like a round color field to form, in a clockwise motion starting from the top of the screen "noon".
I have a way with a half circle, covered by a rectangle - the rectangle rotates over time exposing a half circle - I'd then dup the movie and flip it.
I just upgraded to MX and am learning while earning!!! I'm a little brainshot right now.
But Figured there is got to be a quicker way?
Any help?
Thanks!
CB
How Do U Make A Circle Follow The Mouse
I'm trying to make the eyes of a cat follow the mouse. I have the eyes moving but the problem is I can't keep them inside the cat's eye socket. I want the eyes to move unless they reached the edge of the socket.
Any ideas?
Dynamic Make Copmplete Circle
Hello
I want do draw a circle on ballons and detecting there presence inside the
circle.
just like this http://www.flashgames247.com/play/823.html
How do I do that.
Please help.
HELP :) Make A Grid Circle Formula?
hey all,
problem:
i have a grid from 11 x 11 movieclips = 121 movieclips, the first one at _x=0, _y=0 is number 1! etc
now i want to start from the center of the grid movieclips that is number 61 and want to calculate from that 61 a circle movement till i reach the last outside movieclip number 11?
assuming i start from rigth direction:
so i start with number 61,62,73,72,71,61,49,51,51 = a mini grid of 9x9 then i must start from 63,64 till i have a grid of 5x5 including the mini grid..
where can i find a formula calculation!? or help
i hope this makes sense? )
A Script To Make A Movieclip Move In A Circle
Hey this is my script to draw a rectangle. I want to write a script for it to move in a circle of certain diameter at a certain velocity. Is this possible?
Code:
this.createEmptyMovieClip("mEye001", this.getNextHighestDepth());
mEye001.lineStyle(0, 0xFF0000);
mEye001.beginFill(0xFFFF00, 100);
mEye001.lineTo(100, 0);
mEye001.lineTo(100, 100);
mEye001.lineTo(0, 100);
mEye001.lineTo(0, 0);
mEye001.endFill();
mEye001._x = 100;
mEye001._y = 100;
Frame Independent Circle To Circle Detection
I am having trouble trying to get my head round this part of programming.
I know it is used for detection between movieclips such as snooker balls. I just cant get my head around it and it is driving me nuts!
Does anyone know of any good tutorials that I can use to solve this problem?
Thanks
The Toffee
Circle Collision Plus Direction Circle Should Go
I need help (or code) on how to figure out the direction a circle should go after it is hit by another circle. I know how to get the circles to know when they hace hit each other but i need to know how to find the angle at which the circle would bounce off at. Thanks to anyone who can help.
Moving A Circle Over Half A Circle
how do i move over the half circle
up and donw the circle line?
how do i move it to a certain point?
and how do i calculate it for example 5 point that will be in equal spaces between the circles?
thnaks in advance
peleg
Circle-circle Reactions, With A Twist..?
All right, I'm not as dumb as I sound -- no, really! But here's what's got me stumped:
I have a series of circles that gradually spin toward the center of the screen. The circles are randomly placed at the outer edge of the screen and randomly assigned a speed. Because the balls don't travel in a linear fashion, I'm having trouble figuring out how to adjust their movement. As the circles get closer to the center, they also get "spun" a certain amount -- they have a property called "theta" that gets appended with another property called "spin." Anyway...
I can detect when a collision is taking place: I'm just completely blank regarding how to make the circles react. I've searched a bunch of places, but nothing I've found is making any sense to me...and I'd like to think that I'm not brain-dead...
If anyone has any suggestions, I would LOVE to hear them! Thanks in advance!
Regards,
Blake
Moveable Circle Around Another Circle - No Overlap
Hey all. I have two MC's, circular in shape. One of the circles is stationary and you can drag the other. I'm trying to get the moveable circle to be able to move around the circumference of the stationary circle, but not overlap. I'm able to detect when they overlap, not using hittest. I just can't figure out how to code it so that the draggable circle can't be moved over the stationary circle. Any suggestions, comments, or help is greatly appreciated. Thx.
Drawing A Animated Circle, Dot To Circle
Can some one help me??
Im new in Flash, I want to make an animation of a circle, begining from a small dot and ending in a circle (like wen we draw in a paper), I allready tried everything I know (not a lot!!!! ) .
Is it possible to make this? I will trie to explain:
I want to make a animation of a small pencil drawing a circle from nothing. Begining with the pencil drawing a dot then that pencil will make the complete circle like wen we draw in a paper by hand.
Sorry my English is not very good.
Please Help!
Arcanjo
Circle-Circle Detection
I need some serious circle to circle collision detection. I used one from jobe makar, but I don't think it works for circles that are'nt both moving. Some of the variables are 0, so when it divides by them, it returns NaN. Anybody know any collision detection scripts? <--Sorry, I just wanted to put that in there
Circle Vs. Circle Ricochet.
I'm working on a game that involves circle vs. circle collision detection (More specifically moving circle vs. static point). I am able to project the circle out of the point but I have no Idea how the change the velocity of the circle so that it is physically accurate.
I whipped up a quick thing to Isolate the circle vs. point collision here.
Here's the script:
Code:
var GRAV:Number = .22;
var RADIUS:Number = ball.width/2;
var vx:Number = 0;
var vy:Number = 0;
var dx:Number = 0;
var dy:Number = 0;
stage.addEventListener(Event.ENTER_FRAME, enterFrame);
function enterFrame(Evnt:Event):void {
ball.x += vx;
ball.y += vy;
vy += GRAV;
dx = ball.x - dot.x;
dy = ball.y - dot.y;
if (Math.sqrt(dx*dx+dy*dy)<RADIUS) {
ball.x = dot.x+dx*RADIUS/Math.sqrt(dx*dx+dy*dy);
ball.y = dot.y+dy*RADIUS/Math.sqrt(dx*dx+dy*dy);
// I have no Idea what to put here to simulate ricochet
}
}
If anybody could tell me how I would manipulate the vx and vy variables that would be grand.
3D Spin
I have put my company logo to 3d spin and it's moveing to the right as it spins, only about 1/2 inch. Also I would like it to spin continuously.
Spin
Does anyone know why this script works when I test the movie through flash but doesn't work when I double click the swf file?
the code needs to be attatched to a movie clip to have a go!!
would really appreciate some help!
code:
------------------------------------------------------------------------
onClipEvent(load){
//maximum rotational speed
maxSpeed=10;
}
onClipEvent(enterFrame){
//mouse location along the x axis
xpos=_parent._xmouse;
//x position of this movie clip
center=_x;
//the difference between the mouse and this movie clip along the x axis
xdiff=(center-xpos)/200;
//percentage of maxSpeed
speed=maxSpeed*xdiff;
//update rotation property
_rotation+=speed;
}
Spin
Does anyone know of a tutorial or have a flash fla of a globe spinning?
Spin Up
I have a gear that is spinning for a preloader. I would like the gear to start slow and gain speed up to its max speed. I already have the setproperty working and the gear rotating. I just need the proper mathmatics to get it to speed up a visually appealing rate. Probably over the length of 4-5 seconds.
thnx
|