Follow Up To PLEASE HELP
Her is what i want to do, and need expertise on how to accomplish. Mine now stops completely.
1. I have a button I duplicated 13 times. It has a mc placed on the rollover state. I want it to when rolled over play the mc through regardless of any other actions happening.
2. I have put those 13 buttons in mc and they rotate like a wheel. I placed a transparent button over the buttons and gave it a on rollover stop move on roll off, play movie. When it rolls over it stops the animation in the buttons as well, which I don’t want it to do.
I’m assuming this a basic fix but I’m new to AS> Thanks in Advance
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-11-2003, 04:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cursor Follow, Click, Doesn't Follow
Before you read, I am not SOLVING said problem in topic, I WANT this "problem" to happen, but I'm not quite sure how to pull it off.
http://www.thesaladcaper.com/stuff/GameTest2.swf
These are two different MCs and of course just simple cursor actionscript. I want the glow/spiral to stop following when clicked. Also, if you could help out with how to make the tank rotate (or possibly even curve) to it's resting point, that'd be a lot of help, as well! Any and all help will be appreciated!
=- Follow _Y =-
I have a MC with these actions on it (the mc is called Image_Shift)
onClipEvent (load) {
spaceBetween = 240;
// the space between the beginning of a picture and the beginning of the picture following it
numPics = this._width/spaceBetween;
widthPerPic = (this._width/numPics);
}
onClipEvent (enterFrame) {
if (_root.current != _root.selected) {
point = (_root.current-_root.selected);
xDistTotal = point*widthPerPic;
_root.follow._x += xDistTotal;
_root.current = _root.selected;
}
}
then i have a blank mc called follow with
onClipEvent (enterFrame) {
_root._root.Image_Shift._x+= (this._x-_root._root.Image_Shift._x)/4;
}
Now this has the images shift over 240 pics on the x axis. I want it to shift vertically on the y. How can i mod this to have that work. Ive tried to interchange the _x with _y but no luck
thanks
n
Follow Up
I have a while loop that calls:
_root.box.duplicateMovieClip("boxx"+count, count);
count is incremented so I can set the clip to be retrieved a certain number of times by saying:
count = 1;
while (count<5){
_root.box.duplicateMovieClip("boxx"+count, count);
count += 1;}
My movie clip then opens and has the action:
onClipEvent(load)
{
loadVariables ("getdetails.asp?Record=2", this);
}
I would like to send the increasing value of count to my movie clip that is called so I have something like:
onClipEvent(load)
{
loadVariables ("getdetails.asp?Record="count, this);
}
however this hasn't worked. do I need to use setVariable or something ?
Follow
how do i make a movie clip move around and try to center its self on another movieclip? thx!
Help With Mc Follow Mc
Hi
Im trying to build a bumper <A TITLE="Click for more information about car" STYLE="text-decoration: none; border-bottom: medium solid green;" HREF="http://search.targetwords.com/u.search?x=5977|1||||cars|AA1VDw">car</A>s game and I need help with the health
bar. Will I want it too follow it and allso trun with it and stay at the back of the car at all times. But I cant get that working.
Heres some code
Code:
onClipEvent (enterFrame) {
this._x = _root.car1._x;
this._y = _root.car1._y +30;
this._x = _root.car1._x;
this._x = _root.car1._x;
}
thanks
Follow
ok, so I want to know how to make a follow script with a "negative ease".
I want it to go faster, the closer it gets to the object.
heres the action script I am using...
Code:
onClipEvent(load){
speed =10;
}
onClipEvent (enterFrame) {
endX = _root.pull._x;
endY = _root.pull._y;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
I sort of want it to simulate a ball dropping.
Getting An MC To Follow Another
I'm trying to make an animation in flash, that looks like a heart monitor. The lead MC will use a motion tween to make the shape, and another MC is supposed to follow that one and make a trail behind it. The code on the stage is:
Code:
_root.trail._visible = 0;
_root.trail.duplicateMovieClip("trail"+i, i);
_root["trail"+i]._x = _root.lead._x;
_root["trail"+i]._y = _root.lead._y;
Is it possible to get the trail to follow the lead on the motion tween?
Getting An MC To Follow Another...
I'm making a Breakout/Arkanoid game, and I thought it would be interesting to have something like an after image following the ball. I know there is a way to get MC's to follow behind another one while staying a given distance behind it, but I havn't quite figured it out. I would appreciate it if someone would give me a hand here. There is no actionscript on the ball itself, so that may help at least a little.
Follow Up To PLEASE HELP
Her is what i want to do, and need expertise on how to accomplish.
Mine now stops completely.
1. I have a button I duplicated 13 times. It has a mc placed on the rollover state.
I want it to when rolled over play the mc through regardless of any other actions happening.
2. I have put those 13 buttons in mc and they rotate like a wheel.
I placed a transparent button over the buttons and gave it a on rollover stop move on roll off, play movie. When it rolls over it stops the animation in the buttons as well, which I don’t want it to do.
I’m assuming this a basic fix but I’m new to AS>
Thanks in Advance
One MC Follow Another MC
I have a forklift which can do anything (raise lower fork, and move forward or backward) and I have a object that I want the people to have to lift. I figured it would be a hitTest but i dont know. What I need done is when the fork ("fork") hits the object ("op_hit") the object follows the fork wherever it goes.
I tried this code but it did not work:
onClipEvent(enterFrame) {
if(this.hitTest(this._parent._parent.myFork.mast.Tyne.fork)) {
setProperty(this._parent, _x, Number(getProperty("/myFork/mast/Tyne.fork", _x)));
}
}
Thanks in advance for help.
I can attach the fla it it will help.
Follow Mouse..... Help, Please
Hi,
I want to try this effect. Can anyone help me?
I have circular buttons.
I change colors of the buttons on mouse over. I also have a bigger circle(unfilled) which sits on one of the buttons. Now, If I move my mouse on any other button, the bigger circle should move and sit on the button where the mouse is pointing. (I don't want the bigger circle to trace the mouse throughout the screen.)
How do I do this? I am new to scripting in Flash. Does it require lot of scripting?
Abhigna
Mouse Follow
Hey,
How can i make an arrow follow my mouse on a vertical line. It can only stay attached to that line though?
L8
Mouse Follow
I have a MC that contains the onClipEvent (enterFrame)action
along with script for a rectangle to follow the mouses position along the x axis. This works, but how do i set parameters to keep it within a box and only follow the mouses position when it enters that box? Hope thats not too confusing. Basically i want the rectangle only to move when the mouse enters the specified hotspot and restrict the rectangles x movement to this hotspot. All help is creatly appreciated!
Follow Mouse?
hello,
I want my mouse, when rollovered a image, to show text about it and follows it around....., how can I do this?!?! thanx!
Follow Mouse Help :(
Hi
I want to make a movie clip follow the cursor but only in a vertical direction and the item must not be able to move horizontal. If the cursor moves from left to right nothing should happen until the cursor is moved up or down.
I have flash 5, can anyone help?
thanks
Mouse Follow?
How do I make one of those things that follow the mouse around when you move around the flash? Mouse trail type thing that flys around the mouse... or whatever.. ha... sorry im not very descriptive.
Mouse Follow Nav Bar
Pls help
I have this arrow which i wish to move from left to right according to the mouse location and stop following when the mouse moves to a certain location. Therefore I tried adding the following to the arrow symbol
Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
}
However, since I used the startDrag script but didn't end with a stopDrag script, I cannot do anything in my movie as it is still dragging. So I thought of changing it to the following:
Code:
onClipEvent (enterFrame) {
startDrag(getProperty(_x, _y), true, 0, 389, 550, 389);
if (_x <= 379) {
stopDrag ()
}
}
But now the arrow does not move but I can click on buttons and such. Can anyone please help me modify it so that it works but does not do anything to my other objects?
Thanx a milliion!
Follow Mouse
ahhhhh, I really need help. I want a button, when rolled over, will have a text box follow the mouse, but when you rolled out the box stops following the mouse and it disappears. any help is appreciated!
Follow But Stay Away
hi,
i am trying to build a site but for this, i am not able to do what i need, i need a moving menu, which will follow my mouse whereever i move, but keeps away say about 200 pixel, in the direction to which i move my mouse,
if my icon (on whose click the menu drops) is to the right exactly about 200px, and i can move my mouse over the icon but when i am exacty 201px away, the icon then starts to follow the mouse and come in 200px range,
what i mean to say is that when the icon is near the mouse, i can move anywhere around and over it, in a circumference of 200px, but as soon as i am out of its range, the icon follows and maintains the gap.
Help me do this
i have tried but cant figure a way out
this is the code i have used, but am not able to stop once it reaches the range:
onClipEvent (enterFrame)
{
//where we want to go = where we are + ((where we want to go - where we are)/N);
this._x = this._x +((_root._xmouse - this._x)/135);
this._y = this._y +((_root._ymouse - this._y)/135);
}
Level Follow Up...
The most common way to get a movie clip to move to the top is to use something like
swapDepths(9999);
so you could probably make the movie clip do this when it is clicked on by using
onClipEvent(load) {
_root.topDepth = 9999;
}
onClipEvent(mouseDown) {
if (this.hitTest(_root._xmouse,_root._ymouse)) {
_root.topDepth++;
this.swapDepths(_root.topDepth);
}
}
-----------
I followed the above advice in relation to draggable movie clips being sent to the top, but it started duplicating them.....
Any ideas?
GETTING An Object To FOLLOW The Other
im making a fighting game..and im trying to get player 2 which is a droid player thats suppose to know about player 1 etc. Im having problems writing the code that allows player2 to know where player one is..and move towards him in a slow enough fashion. I got it to work..kinda..except the way i coded it..it jumps from one point to the location of player1 WAY to quickly. how can i slow it down? any suggestions. heres my code..just for that section.
player1 = player1 x //ignore these 2 variables...
player2 = player2 x //
if(player1 != player2){
p1=player1;//x of player 1
p2=player2;//x of player 2
currentDistance = p1-p2;
//this doesnt work properly..it kinda works..and tracks..to some degree..but increments WAY to fast.
//i want it to know how far player 1 and 2 are from each other and have player 2...and increment by 10 until its x and y, are equal to the x and y of player one
setProperty(this,_rotation,+0);
setProperty(this,_x,(_x + (currentDistance)));
}
Follow Another Sprite - AI (pac Man)
Help here .....an ai script...I'm wanting the enemy to follow the hero...on his _x and _y...problem being...it's seems to get confussed...as his _x and _y at the same time are changing..so he can't follow him he just gets stuck on the spot and goes crazy...
how do you read an _x and _y at the same time and effect them both...or am I way of the mark?
I want it to follow like pac man?
would be great if youse could help me out...
code below...
}
onClipEvent (enterFrame) {
if (hitTest(_root.hero)) {
_root.gotoAndPlay("die");
}
hero = _root.hero._x;
hero = _root.hero._y;
// move the hero MC in opposite direction to free him of collision
if (_root.back.hitTest(_x+10, _y, true)) {
_x -= 4;
} else if (_root.back.hitTest(_x-10, _y, true)) {
_x += 4;
} else if (_root.back.hitTest(_x, _y-10, true)) {
_y += 4;
} else if (_root.back.hitTest(_x, _y+10, true)) {
_y -= 4;
}
// works out which direction the hero is in and follows him
if (hero<_x) {
this.gotoAndStop("left");
_rotation = 270;
_x += walk;
} else if (hero>_x) {
this.gotoAndStop("right");
_rotation = 90;
_x -=walk;
}
if (hero>_y) {
this.gotoAndStop("up");
_rotation = 0;
_y += walk;
} else if (hero<_y) {
this.gotoAndStop("front");
_rotation = 180;
_y -= walk;
}
}
Follow Mouse FX
Hi folks;
i hope you can help me out on this. I'm currently develloping a new menu for my website and i want some nice animation in it.
This is what i want to do: I have a trusstower and sleeveblock. This sleeveblock should "follow" the mouse (but only up and down!!) as the user moves the mouse from topic to topic.
So, can I combine the StartDrag script with a motionguide? How would you do it?
Thanks in advance
sentencedfan
btw. if you wanna know, how the menu looks like now, come to http://www.fivestyle.de
Help With Follow The Leader
I'm trying to get 10 movie clips to follow one leaving a trail, kind of like the mouse trail thing. One clip is named "line" and I want it to follow "lineb"
I'm using FlashMX and here is the code. I'm not sure what I need to have for the array. Help me?
thanks.
//follow
onClipEvent(load) {
// create 10 line followers
for(var i=0;i<10;i++) {
_root.attachMovie("line","line"+i,i);
}
// start the array
trail = new Array();
}
onClipEvent(enterFrame) {
// mark the lineb location
linebLoc = {x:???, y:???};
// add the new location to the array
trail.push(linebLoc);
// delete the oldest location
if (trail.length > 10) trail.shift();
// change the positions of all line followers
for(var i=0;i<trail.length;i++) {
_root["line"+i]._x = trail.x;
_root["line"+i]._y = trail.y;
_root["line"+i]._alpha = i*10;
}
}
Mouse Follow HElp
I have a menu of buttons. I have an arrow that I want to move up and down but only when the mouse is over a button. Example the user rolls over button one the awrrow moves along the x axis and comes to rest at the user's selection, The user moves to another bustton the arrow slides down to that choice and so on. ANyone one with some ideas
Follow Mouse
Hi
I have made a simple "follow the mouse" swf.
The MC works just great. I have also added two output windows that show the current position of the MovieClip.
Now here's the problem...My movie size is 650 x 400 pixels...but the readout is in 4 digits...what exactly is happening.
If its of any help, here's the code:
Code:
movie_clip._x = _xmouse;
movie_clip._y = _ymouse;
XPos = getProperty ("movie_clip", _x)
YPos = getProperty ("movie_clip", _y)
Thanks for any information...
Tootles
RanTen
Mouse Follow
hi there
plz i have a serial of buttons and i want when i roll the mouse over the button zone i want a little arrow follow the mouse under the buttons (i hope u get it)
like in http://www.macromedia.fr
if i use
_x +=(_root._xmouse-_x)*.3;
_y +=(_root._ymouse-_y)*.3;
(3 is an example)
so it will follw the mouse in every direction and in every place but i want that the arrow does'nt exist if i don't roll the mouse over the button zone
in http://www.macromedia.fr theres an example
thx in advace
Bar Mouse Follow
Ok I want to make my bar thats a movie clip folow my mouse.
Does anyoen know the actionscript for my bar movie clip?
Thank You
David
FOLLOW DA MOUWSE
i want to make an MC that follows the mouse (Not using startdrag() ) i want it to follow it slowly u know, with a delay or somethin
please any help would be greatly appreciated!!!!!!!!
cheers
MC To Follow Mouse
Is it possible to have a MC follow the mouse only on a y axis and only when the mouse is in a certain area or over the MC.
Any help would be appriciated
Thx
Follow The Mouse
greetings,
im trying to do a crazy website (with wiered eyes follows the mouse!
how u can make something that follows the mouse (like in oddcast website)????
thanx
Mouse Follow
i made a ball with another small ball in, the small ball looks at the mouse but it must stay in the other ball!
it's maybe a bit complicated explained but just see the fla and you understaind i suppose.
thx
Follow The Mouse
Can someone lead me to someplace or send me a file of possibly an animal or person thats head moves with the mouse and the eyes follow. I kinda get what to do, but I keep missing something. I just want some simple file I can break apart and see what Im doing wrong.
Thanks.
Follow Mouse ?
Hi, i'd like to have something that follows my mouse, not a regular dragger, one with delay, you know what i mean, ...
Follow The Cursor
How would i make something on screen follow around the cursor + how would i set a certain area on the screen that the symbol can only stay in. e.g. if i had a dog and i only wanted it to stay in this one area - e.g. a cirle, but still follow the cursor about as far as it can.
any help or links would be very helpful
thanks.
Won't Follow Guide
I have a mc tween that has a guide. The mc snaps onto the guide on the beginning keyframe and the last, but it doesn't follow the guide. Any ideas on why?
Follow On X-axis
How would I go about getting a movie clip to stay on a certain point on the x-axis, but it follows the mouse?
Follow The Cursor... But Not All The Way
im trying to create an animation that features a movie clip following the mouse cursor. the further the cursor is, the faster the movie clip moves towards it.
however, i do NOT want the MC to go all the way to the cursor.
rather, id like to have it contained within a specific area (meaning it can only travel so far towards the mouse cursor, before it is completely halted).
the current code i have (which does not stop the MC at a point, like i'd like it to) is as follows:
Code:
onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}
i have the action applied to the MC.
how can i alter it to get the MC to stop at a certain point?
thanks,
Follow The Cursor
Hi People,
again thanks in advance for the help,
I want the button graphic to follow the cursor in my movie and reach the cursor destination with an easing value. I think I got the easing part, but I'm lost on the cursor thing.
any help?
Where To Put The URL In Follow Menu?
I have downloaded the Elastic follow menu. Great script!
Can somebody help me though, where to put the (URL)links in the buttons? I hav been puzzling over it, but I can not find it.
I have attaches the FLA.
Thanks!
Mouse Follow
Does anyone know how to have an object follow the mouse in a specific area. Not the whole flash document. Here's an example: http://www.summitprojects.com/
Tag That Follow Your Mouse
can anybody teach me how to do this thing?
do u see the girl on the right?
when your mouse is over that girl
theres this small tag folowing your mouse
saying "<<just drag the bar, sweetcheeks"
http://www.driftlab.com/
anybody can teach me how to do this?
thnx^^
Tag That Follow Your Mouse
can anybody teach me how to do this thing?
do u see the girl on the right?
when your mouse is over that girl
theres this small tag folowing your mouse
saying "<<just drag the bar, sweetcheeks"
http://www.driftlab.com/
anybody can teach me how to do this?
thnx^^
If I Want An Object To Follow...
Hello again!!!
I just need some help here.
How can i program this:
-one ball that you should be able to drag,
-small balls that should follow after the bigone,
-the small ones should "float" around a bit, ->
->> when you start dragging it, they should stand still for ca. 0.1 sec and then follow, but when you stop dragging the bigone the smallones should float to theyr posision around the bigone...
Thanks
Follow Mouse
Hi !!
I have a clip which follows _ymouse,
but under the condition that _ymouse hitTest another clip.
I don't know....something doesn't work
I posted the fla
bye
MC To Follow Cursor
I want an effect where a movie clip follows the mouse cursor where ever I move it.
How can I make a Movie Clip follow the mouse cursor in Flash?
Thanks
|